ScootKit / CustomDCBot

Create your own discord bot - Fully customizable and with a lot of features
https://scnx.xyz/bot
Other
41 stars 32 forks source link

i need help !help is dont work #22

Closed amorking1996 closed 3 years ago

amorking1996 commented 3 years ago

[BOT] Client logged in as GhostRPNew#3510 and is now online! [INFO] Checking configs... [INFO] Done with checking. [BOT] The bot initiated successfully and is now listening to commands. (node:303643) UnhandledPromiseRejectionWarning: TypeError: fields.flat is not afunction at Function.normalizeFields (/home/DCBot/node_modules/discord.js/src/structres/MessageEmbed.js:450:8) at MessageEmbed.addFields (/home/DCBot/node_modules/discord.js/src/structurs/MessageEmbed.js:266:42) at MessageEmbed.addField (/home/DCBot/node_modules/discord.js/src/structure/MessageEmbed.js:257:17) at Object.module.exports.run (/home/DCBot/src/commands/help.js:25:23) at Object.exports.run (/home/DCBot/src/events/message.js:20:17) at Client.client.on.args (/home/DCBot/main.js:164:69) at Client.emit (events.js:198:13) at MessageCreateAction.handle (/home/DCBot/node_modules/discord.js/src/cliet/actions/MessageCreate.js:31:14) at Object.module.exports [as MESSAGE_CREATE] (/home/DCBot/node_modules/discrd.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32) at WebSocketManager.handlePacket (/home/DCBot/node_modules/discord.js/src/cient/websocket/WebSocketManager.js:384:31) (node:303643) UnhandledPromiseRejectionWarning: Unhandled promise rejection. Ths error originated either by throwing inside of an async function without a cath block, or by rejecting a promise which was not handled with .catch(). (rejecton id: 1) (node:303643) [DEP0018] DeprecationWarning: Unhandled promise rejections are derecated. In the future, promise rejections that are not handled will terminate he Node.js process with a non-zero exit code.

SCDerox commented 3 years ago

Hi, thanks for creating an issue. Please provide your whole log and explain, what you are trying to do, so I can actually help you.

amorking1996 commented 3 years ago

That's the whole protocol I want! Use help but when I do this, this error occurs

SCDerox commented 3 years ago

Please send the whole log (not just the error), so I can help you - this is not the whole log, it usually has a lot more detailed information in it. Please also send your node version and on which OS you are running the bot.

amorking1996 commented 3 years ago

Version Ubuntu 20.04

root@v46821:/home/DCBot# npm start

customdcbot@1.0.0 start /home/DCBot node main.js

[MODULE] Module admin-tools is disabled [MODULE] Module auto-publisher is disabled [MODULE] Module auto-react is disabled [MODULE] Module betterstatus is disabled [MODULE] Module birthday is disabled [MODULE] Module giveaways is disabled [MODULE] Module levels is disabled [MODULE] Module moderation is disabled [MODULE] Module partner-list is disabled [MODULE] Module ping-on-vc-join is disabled [MODULE] Module reaction-role is disabled [MODULE] Module serverinfo is disabled [MODULE] Module suggestions is disabled [MODULE] Module welcomer is disabled [COMMANDS] Loaded ./src/commands/help.js [COMMANDS] Loaded ./src/commands/module.js [EVENTS] Loaded ./src/events/botReady.js [EVENTS] Loaded ./src/events/ready.js [EVENTS] Loaded ./src/events/message.js [DB] Synced db [BOT] Client logged in as GhostRPNew#3510 and is now online! [INFO] Checking configs... [INFO] Done with checking. [BOT] The bot initiated successfully and is now listening to commands. (node:303709) UnhandledPromiseRejectionWarning: TypeError: fields.flat is not a function at Function.normalizeFields (/home/DCBot/node_modules/discord.js/src/structures/MessageEmbed.js:450:8) at MessageEmbed.addFields (/home/DCBot/node_modules/discord.js/src/structures/MessageEmbed.js:266:42) at MessageEmbed.addField (/home/DCBot/node_modules/discord.js/src/structures/MessageEmbed.js:257:17) at Object.module.exports.run (/home/DCBot/src/commands/help.js:25:23) at Object.exports.run (/home/DCBot/src/events/message.js:20:17) at Client.client.on.args (/home/DCBot/main.js:164:69) at Client.emit (events.js:198:13) at MessageCreateAction.handle (/home/DCBot/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14) at Object.module.exports [as MESSAGE_CREATE] (/home/DCBot/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32) at WebSocketManager.handlePacket (/home/DCBot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31) (node:303709) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:303709) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

amorking1996 commented 3 years ago

isit right?

SCDerox commented 3 years ago

Okay, thank you. What node version are you running the bot on?

amorking1996 commented 3 years ago

root@v46821:/home/DCBot# node --version v10.19.0 root@v46821:/home/DCBot#

SCDerox commented 3 years ago

Sorry, but you need to use at least node v12 as per the discord.js docs.

amorking1996 commented 3 years ago

okay im installing v12 one sec

amorking1996 commented 3 years ago

okay its works ths for helping