Skip to content
Advertisement

Tag: discord.js

Interaction has already been acknowledged Discord.js

This command keeps on returning Interaction has already been acknowledged. How can I solve this? Here’s the code I’m currently using: The error is showing: Answer On line 44: await i.deferUpdate({ fetchReply: true }); It makes the error because the interaction has already been replied to. The error should go away when you remove this line. You also should replace

How do I send a sticker in Discord.js

I can’t figure out how to send a sticker in discord.js. Here is my code (ids removed): And when trying that I get this error: But if I just try stickers: client.guilds.cache.get(‘guild id’).stickers.cache it works but instead sends every sticker in the server Does anyone know what this error means, how to fix it, and if there is just a

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

discord.js “TypeError: fn is not a function”

So I started getting this “TypeError: fn is not a function” after I added the if-else statement to the code Thats the code I have and my error is Thank you to anyone that is able to help me find a fix for this. Answer It’s because .some() accepts a callback function only but notverified is a Role or a

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

Advertisement