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
Tag: discord
Cannot figure out how to respond to choices with embeds
Basically, what I am trying to do is provide people with a guide of what to do with my bot but I cant figure out how to use choices and how to respond to a certain choice that gets selected (for example, someone selects ‘data’ and gets a guide about their data) Answer Most of what you have typed in
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 – Receiving error when trying to retrieve userID of .repliedUser
Here’s the situation: In my server I have a bot (not mine) that replies to specific user actions with a message containing an embed that has the word “Done!” in the description. I want to set it up so that once this bot sends the “Done!” message the user it replied to receives a role. Today being the first day
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
Clear command is not deleting messages correctly discord.js v13
I want to make a bulk-clear command for my bot. I tried this code: But it doesn’t work correctly. when I run !clear 3, It deletes 2 messages. Notes: I am using discord.js v13 and node.js v16 Answer Your bot also counts your command as a message, and removes it. That’s why it only removes 2 other messages. To prevent
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
Why does my addrole command have errors? (discord.jsV12)
So basically my addrole command after the new version of discord.jsv13 no longer works and displays errors like role.id is not a function or role.id is not defined even though I believe there is no error, I’m pretty experienced with javascript but I tried different methods of fixing it but neither seem to do the trick, maybe because v12 is