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

Bot not working? #1

Description

@Herobr1ne

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)
`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions