Skip to content
Advertisement

Tag: discord

Discord bot loading but commands are not working

I’m making my first Discord bot and I’m following this tutorial playlist here: https://www.youtube.com/watch?v=j_sD9udZnCk&list=PLbbLC0BLaGjpyzN1rg-gK4dUqbn8eJQq4&ab_channel=CodeLyon But for some reason my bot will load, say the load message, and even set its custom status but none of the commands are working. I have looked at many other forum posts and none are my problem so I’m very confused. I’m using Discord.js 14.3.0

TypeError [InvalidType]: Supplied roles is not a Role, Snowflake or Array or Collection of Roles or Snowflakes issue

I’m having an issue creating my multiple select menu options on Discord.js v14. I’m wanting to add more than one role to the member when more than one option is selected in the drop-down menu. However, I’m getting the following error: TypeError [InvalidType]: Supplied roles is not a Role, Snowflake or Array or Collection of Roles or Snowflakes issue If

Discord.js v13 code breaks when upgrading to v14

I’ve just updated my discord.js from v13 to v14 and there are many errors. Errors with intents: Errors with interactions: Errors with channels: Errors with builders and embeds: Errors with enums: Answer Discord.js v14 includes many breaking changes. It now requires Node 16.9 or higher to use, so make sure you upgrade to the latest LTS version. This version of

how to sent request to discord bot API? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 8 months ago. Improve this question How do I properly send a discord API request, and where do I get a valid token to do that

Modal Collector Discord.js

I was trying to create a collector for my modal using Discord.js. With the code below I don’t get an error, but the modal fails in Discord and the code in collector.on never runs. I have used a similar approach to be able to create a button collector by replaycing the compententType: with “BUTTON”, which runs perfectly fine. I am

if (typeof data !== ‘string’) throw new error(errorMessage);

I’m working on a serverinfo command in discord.js v13 and I don’t know how to fix this error ERROR: [Photo Error]: https://i.stack.imgur.com/tcEem.png if (typeof data !== ‘string’) throw new error(errorMessage); ^ RangeError [EMBED_FIELD_VALUE]: MessageEmbed field values must be non-empty strings. [Symbol(code)]: ‘EMBED_FIELD_VALUE’ Answer The second parameter to .addField must be a string, as your error message says: MessageEmbed field values

Advertisement