client.on('message', (message) => { if (message.author.id === 'xxxxxxxxxxxx') { if (message.embeds.length == 1) { const embed = message.embeds[0] if (embed.description.includes("created a giveaway")) { return message.channel.send(`<@&1048187425253490748> Giveaway started! ${message}`); } } } })
C:\Users\Admin\Desktop\HyperBot\src\commands\tools\Autoresponder.js:1 new Client('message', (message) => { ^ ReferenceError: Client is not defined at Object.<anonymous> (C:\Users\Admin\Desktop\HyperBot\src\commands\tools\Autoresponder.js:1:1) at Module._compile (node:internal/modules/cjs/loader:1159:14) at Module._extensions..js (node:internal/modules/cjs/loader:1213:10) at Module.load (node:internal/modules/cjs/loader:1037:32) at Module._load (node:internal/modules/cjs/loader:878:12) at Module.require (node:internal/modules/cjs/loader:1061:19) at require (node:internal/modules/cjs/helpers:103:18) at client.handleCommands (C:\Users\Admin\Desktop\HyperBot\src\functions\handlers\handleCommands.js:15:25) at Object.<anonymous> (C:\Users\Admin\Desktop\HyperBot\src\bot.js:19:8) at Module._compile (node:internal/modules/cjs/loader:1159:14)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)