Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Bot not working? #1

Open
Herobr1ne opened this issue Jan 13, 2021 · 0 comments
Open

Bot not working? #1

Herobr1ne opened this issue Jan 13, 2021 · 0 comments

Comments

@Herobr1ne
Copy link

Hey i tryed to setting up the bot, but when í try to use the help command, this error appear
`/root/PteroControl-main/node_modules/discord.js/src/structures/MessageEmbed.js:450
.flat(2)
^

TypeError: fields.flat is not a function
at Function.normalizeFields (/root/PteroControl-main/node_modules/discord.js/src/structures/MessageEmbed.js:450:8)
at MessageEmbed.addFields (/root/PteroControl-main/node_modules/discord.js/src/structures/MessageEmbed.js:266:42)
at MessageEmbed.addField (/root/PteroControl-main/node_modules/discord.js/src/structures/MessageEmbed.js:257:17)
at Object.exports.run (/root/PteroControl-main/commands/help.js:8:6)
at module.exports (/root/PteroControl-main/events/message.js:12:7)
at Client.emit (events.js:198:13)
at MessageCreateAction.handle (/root/PteroControl-main/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (/root/PteroControl-main/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/root/PteroControl-main/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/root/PteroControl-main/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant