##########################
/root/bot/wb-poll/index.js:12
const helpEmbed = new Discord.RichEmbed()
^
TypeError: Discord.RichEmbed is not a constructor
at Object. (/root/bot/wb-poll/index.js:12:19)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
When an user gains or stop having the "Poll Creator" role, the bot does not pick that up instantly. If I restart the bot it works. I don't know if it is some type of cache and after some minutes it will work properly, but that should not be cached. It should let or stop users from creating polls instantly.
Hello im having an issue. when i use the command node "index.js" the bot says that it has started then it shows the following error message:
Server is online!
/home/runner/VotaBot/node_modules/discord.js/src/client/ClientDataManager.js:81
guild.channels.set(channel.id, channel);
^
TypeError: Cannot read property 'id' of undefined
at ClientDataManager.newChannel (/home/runner/VotaBot/node_modules/discord.js/src/client/ClientDataManager.js:81:36)
at Guild.setup (/home/runner/VotaBot/node_modules/discord.js/src/structures/Guild.js:307:68)
at GuildCreateHandler.handle (/home/runner/VotaBot/node_modules/discord.js/src/client/websocket/packets/handlers/GuildCreate.js:12:15)
at WebSocketPacketManager.handle (/home/runner/VotaBot/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:108:65)
at WebSocketConnection.onPacket (/home/runner/VotaBot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:336:35)
at WebSocketConnection.onMessage (/home/runner/VotaBot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:299:17)
at WebSocket.onMessage (/home/runner/VotaBot/node_modules/ws/lib/event-target.js:120:16)
at WebSocket.emit (events.js:314:20)
at Receiver.receiverOnMessage (/home/runner/VotaBot/node_modules/ws/lib/websocket.js:789:20)
at Receiver.emit (events.js:314:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2021-07-14T09_42_29_326Z-debug.log
I am hosting the bot on repl.it and i have no idea on how node.js works. please someone help me!
Looking at the bot logs, many people just don't get how the commands are used. This is not their problem, is mine for not doing help properly. Need a rework to make it more clear.
If I try to create a poll or a vote it shows this:
@alexdud3, An error occurred while running the command: TypeError: RichEmbed is not a constructor
You shouldn't ever receive an error like this.
Please contact and then my username.