No role is assigned in discord js TypeError: Cannot read properties of undefined (reading ‘add’)
Please tell me how to assign a role in discord.js by the user ID, which is located in the variable id
(let id = interaction.message.embeds[0].fields[5].value;
)
discord js v14 make buttons interaction execute in an other file
I’ve been looking to make button files on a /commands bot, but I don’t have any idea on how to do it
How to set bot’s role to highest position in server’s role hierarchy ( Discord.js v14)
I’m trying to set the permissions role assigned to my bot upon joining the server to the highest position in the server’s role hierarchy.
Discord bot crashes immediately after sending a dm to anyone
When I try to send a dm with my discord bot through discord.js, it successfully sends the message in dms and replies to my message that it had sent the dm, but then crashes in terminal, I have tried multiple things to fix it, but all doesn’t seem to work. I have tried to search on google to see if others experience the same, but no one else does, it looks like I’m the only one.
Music discord bot isn’t playing music
Here the code for my play.js file:
Discord bot online but not respondingg
Hi i created a discord bot with replit in js. The bot has only one command, its to say pong when we say ping. Here is my code
Problems with createdTimestamp discord.js V14.15.3
My problem is the i get an error where interaction.createdTimestamp
, is undefined
Problems with createdTimestamp discord.js V14.15.3
My problem is the i get an error where interaction.createdTimestamp
, is undefined
Where can different discord API components be used? And how to get multiple types of data from a user?
I can’t find an answer to this basic question online or in the documentation.
Discord.js v14 bot crashing after message deletion
I use [email protected] with Node.js v21.7.3. This code