djs-questions

9202 threads · Page 171 of 185

Can discord bots click a button? 4 messages
sage bobcat Hi. Is there any way to click button with bot or token
How do I start a function with a var in the name? 3 messages
cinder knoll I need to call this function using a variable (nação). I made it as its shown in the images but it lead me to an error....
Differences between interaction.type == and interaction.is 7 messages
storm perch Hey, i wanna ask what is different in methods from title? I have in my code both of them, for handling different thing, ...
ypeError: Cannot read properties of undefined (reading 'invites') 8 messages
frigid thistle I have a 5k server, I want to make an invite bot for this server, but it doesn't work and commands that work on a 20-per...
autocomplete not working 14 messages
queen glen Autocomplete won't show in discord
transfer ownership from bot to user 3 messages
untold cloud how do you have a bot transfer ownership of a server to a user? I don't know how, but one of my users managed to make m...
DiscordAPIError: Invalid Form Body 38 messages
fierce birch I recently changed my server in codes etc. I did not make any changes, but I am facing such an error and I could not sol...
Get emoji 12 messages
vital scarab How can I get emoji with interaction? If I use ```js const someEmoji = client.emojis.get("id"); ``` I get an error `Refe...
Avatar format 3 messages
vital scarab Why does it give me the format webp? ```js ${user.avatarURL({ format: 'jpg', dynamic: true, size: 2048 })} ```
forum posts closing 3 messages
vague tendon how can I lock & close a forum post?
how do i get the channel where a slash command has been executed? 1 messages
vague tendon ^
How do I fetch only user messages, not bots? 2 messages
supple pier When I try to get all messages from a specific channel, I get everything, but I also want to exclude bot messages <:thin...
how can I lock & close a forum post? 1 messages
vague tendon ^
Idk which error is, the request body contains invalid JSON 4 messages
dusty sapphire v14.7.1
Trying to migrate Discord bot from string to slash commands, error when running deployment script 6 messages
topaz abyss G'day. So, I have been trying to migrate my bot over to slash commands (a bit late but necessary nevertheless). I have w...
djs on cpanel - How to? 6 messages
grave mulch Hello there. I'm trying to deploy a bot on cpanel. I've successfully installed nodejs and it runs, after that I've insta...
Discord is trolling me ! 49 messages
worldly plume Hi, I think i'm getting trolled by discord : I'd to reset my bot token, but after i've update it in the code, i'm gettin...
How to solve invalid form body 13 messages
junior widget ```DiscordAPIError[50035]: Invalid Form Body application_id[NUMBER_TYPE_COERCE]: Value "undefined" is not snowflake. ...
What can I fix in this code to make sure that the bot deletes a channel when giving the ID? 11 messages
atomic flare ```js client.on('messageCreate', msg => { let testChannel = client.channels.cache.get if (msg.content === `delete ${...
how to update new version fix zoombie connect 7 messages
halcyon thunder I see bug fixed, but i dont know use what version discordjs. Help… <#986520997006032896>
Invalid bitfield flag or number: GUILDS 18 messages
kind shore Invalid bitfield flag or number: GUILDS
Failed to register slash commands - ExpectedConstraintError: Invalid string format 10 messages
last ore When I run my command registry script I get this error: `ExpectedConstraintError: Invalid string format at Object.ru...
descriptionLocalizations are undefined 4 messages
glossy lake Hi, maybe someone can help me with my problem. So I want to get `descriptionLocalizations` from `client.application.com...
Bots banned by other bots 4 messages
tough sorrel Two of my bots: YAGPDB.xyz and security banned the other 4 bots that were apart of my server. I just found this out toda...
1003448629866020986
Trying to access a variable from multiple scripts 7 messages
pastel monolith Hi. Sorry if this is a bit of a noobie question. I've found many sources with different answers to what I want to do, bu...
Bot is responding to its own messages 9 messages
stone thunder If i want the message only that be sent in the channel without repeating a message In this code ```js client.on("messa...
Slash command not registered 42 messages
vital scarab I use code from discord js guide, but command not registered. Code: https://pastebin.com/MLS0AxEB
WS 5 messages
daring spoke Yo, I don't know how to handle events in @discordjs/ws
998292157150535700
set the tags of a forum channel 5 messages
vague tendon how can I set the tags of a forum channel?
EmbedBuilder not working 17 messages
plain hamlet I have this command which should echo my message. It has an boolean argument to make it an embed. I choose true but it d...
client.commands 12 messages
pseudo lagoon The discord.js guide suggests creating a commands collection on the client object. From what I can tell this isn't stric...
Interaction reply after message 6 messages
bronze socket Hello guys, I have a question, how I can reply to interaction after message send by same interaction, that code not work...
Collection is not defined 16 messages
stuck tundra Hi all! As i went through the guide, if recieved the error message and dont really understand how to fix this. I did no...
error handling 25 messages
subtle citrus Hi all! As you know, if your bot has an errror it normally shuts down. Is there something like error handling? (Event or...
Where to put client.commands = new Collection(); 7 messages
plain hamlet Hi, I‘ve got a undefined error, because I forgot to define `client.commands = new Collection();`. But where should I in...
Vanity Roles 11 messages
void heath So i found this code but when i change my personal status, nothing happens. I tried logging `activities` and `newPresenc...
Correct console output(<ref *1> 4 messages
supple pier The `messages` variable outputs all messages from the channel ```json [ <ref *1> Message { channelId: 'id', gu...
Random integer only once random 6 messages
spring ermine Hey! I've been working on a "random shitpost sender" command, but when I try the command after each start of the bot, th...
How would I set as the params for the ActivityType.Custom? 4 messages
hollow night ```JavaScript await DiscordClient.user.setActivity('testing', { type: ActivityType.Custom, emoji: ':white_check_mark:',...
Unexpected Token '??=' 17 messages
kind shore I'm not sure how to fix this, can someone help me?
Get all messages in channel 5 messages
snow zealot I'm trying to get the content of posts from a specific channel by its ID, but the content is always empty even though th...
guild.commands is undefined 18 messages
acoustic saffron what is this error?
i cant install 3 messages
Markdown in discord.js 17 messages
void tendon hello
Banned for self-bot while using djs 10 messages
pseudo lagoon Hi, not sure if this is a good place to ask this, so if not please let me know and I'll delete the message any direction...
Discord Rate Limit 18 messages
latent iron Quick question, hopefully - I'm looking to DM a bunch of members on my server that have a particular role if a particula...
RPC with 0Auth app 2 messages
marsh furnace Is it possible to change a users rich presense if they have authorized an application to change it through 0auth? I assu...
1003448629866020986
Updated to the new discord.js and now my bot won't start! 6 messages
slim peak Hi! I've been coding in 12.5.3 up till now (so you can really tell i've not been keeping up to date, lol). Today I final...
Default option instead of addStringOption? 2 messages
main latch I want to have a option the when selected automatically executes, another option if selected uses addStringOption. How c...
Slash commands not authorized 16 messages
vale valley I am trying to get my bot setup to use slash commands, but when I run my deploy-command file it gives me the error: `Di...