djs-questions

9202 threads · Page 169 of 185

Buttons respond a certain number of times 8 messages
vital scarab If I send a slash command "set_voice" one time and press button, button works 1 time. If I send 2 or more time "set_voic...
Remove interaction from button collector 4 messages
slow stirrup How can I remove a button interaction from a button collector? I can't seem to get the dispose() to work. ```const butt...
Counting system 115 messages
fallen gulch Whenever I run my code the bot comes online but when I go to use my slash command I get the application did not respond...
Button not staying in Loading state 6 messages
gleaming python When I use the `ButtonInteraction#deferUpdate()` method, it triggers the loading state for the button for 1 second and r...
Why do I keep getting DiscordAPIError[40060]: Interaction has already been acknowledged. 6 messages
slim trellis I'm trying trying to create a basic ping command for my bot but I keep getting this error: ```js DiscordAPIError[40060]:...
Get variable to other file 3 messages
young blaze Hey, my code is the following: index.js ``` import { } from './events/myfile.js' let result = await fetch('API'); let ...
Register Slash command limit 27 messages
robust geyser Before I known 1day 200 commands can register Then.. that 200commands include modify or only for new commands?
bot not responding to messages 16 messages
gritty garnet bot does not respond although all events are normal
how to define an attachment in the EmbedBuilder.setImage() 10 messages
hollow osprey I have been looking for an answer in a while and my question is how to define the attachment in my case in the embed ima...
getting issues in shards 1 messages
oak monolith hi
Creating button event 7 messages
unique lily so I use if (selected === 'first_option') { await interaction.reply({ embeds: [embedOptionOne], ephemeral: true...
manage slash commands and originals commands in the same time 8 messages
wise plover Hello, i have multiple commands which works fine with normal `?command`. I have now slash commands and my execute funct...
Nothing from terminal 7 messages
unkempt schooner I'm trying to get my bot to come back online. I got it to come on line last night, and when I tried again, nothing happe...
Interaction create not firing after exiting a modal 49 messages
silent parrot Attached code below. There are no errors being thrown.
Error: SyntaxError: Indentifier "options" has already been declared, how can i fix it? 8 messages
dusty sapphire v14.7.1 of dicord.js I uploaded a image of the script
Invites 4 messages
drowsy crescent Hey, is there some way to get the userid of the user that invited another user? Like: member.inviter.id? Member is defin...
EmbedBuilder .image not being shown on all devices? 3 messages
real arrow I'm trying to send an embed with an image in it (via EmbedBuilder.setImage), but the image preview only shows a placehol...
how to listen for button clicks after a slash command 8 messages
hearty dove const inviteButtonRow = new ActionRowBuilder() .addComponents( new ButtonBuilder() ...
How does one go about making such a thing like this? 10 messages
naive robin I'm trying so hard to figure out how they made a custom "typing" thing such a this... I can't seem to find the answer an...
How to delete slash commands? 38 messages
willow grove In my slash commands list, all my music bot commands are showing up, but its not running, how do I remove those until I ...
Editing Reply not working 13 messages
mortal pine So I want to edit the reply when the select menu was clicked, but I got a following error; `TypeError: reply.deleteReply...
TypeError: Cannot read properties of undefined (reading 'user') 21 messages
plush lichen Hi. Can someone tell me what's the problem here? :D
error undefined slash cmd 12 messages
wooden spade i've this error, how to repair this ?. all is good but not this
Invalid token 24 messages
echo musk So just like under one hour ago i got an issue who said that my token saw invalid (see error message). I didn't changed ...
DiscordAPIError: Interaction has already been acknowledged. 15 messages
gleaming schooner ```client.on('interactionCreate', async (interaction) => { const split = interaction.customId.split("_") const...
How do I use interaction.options.getSubcommand() 4 messages
simple pewter I can't call it on a command interaction from typescript because the getSubcommand is ommitted for some reason?
What is the purpose of PresenceData.afk 4 messages
quartz willow What does it actually do? I've seen it for ages and Idle has a status value of its own so I'm not sure what exactly AFK ...
Has anyone made a typesafe command handler? 1 messages
simple pewter Basically you give a json with all registered commands, so then when fetching data all of the data will be typed using t...
ChannelSelectMenu 26 messages
grand rover When I use the code in the first Image i do not get a console.log with the interaction, when i use the the SelectMenuBui...
my command wont work 26 messages
final peak My command wont work idk why there is no error its wont reply to prefix
Better ways to register commands? 37 messages
simple pewter Hi, is there a better way to register commands than the json shown the the documentation welcome page? I'm not really ev...
Why doesn't the LinkButtonComponentData field have a customId field? 7 messages
opaque oak What was the point of dividing a type into two subtypes?
Problem Unknow Interaction 3 messages
winter crystal Someone help me ?
Should I use stable or main for a new bot now? 3 messages
simple pewter Title is the question
My bot ain’t answering after one command 21 messages
idle robin I don’t know which file is the error located at..
Bot doesnt recognize message 9 messages
drowsy crescent Hey, if a user types in !balance in the chat, the bot should respond with there current balance, but it doesnt. Theres n...
Can I still built a bot with prefix, if is intended to be private? 2 messages
ebon eagle Yes, I am tired of slash and not being able to have, what I picture in my bot. But, been recalling the recommendation in...
There's someone know how can I make my boy restrict a command per roles? 3 messages
dusty sapphire v14.7.1
Undefined / Unknown guildDelete event on start 13 messages
warm aurora Since I enabled sharding for my bot, I get a guildDelete event every time I start it (not sure if it's really related to...
The button collector is not working, I'm doing something wrong 3 messages
snow zealot Code: ```js if (usdPricePerByteFormatted === 0) { const confirmEmbedZero = new EmbedBuilder() . . . const yesZero = new...
Command /ban : 31 messages
severe nimbus How to check if the user is on the server?
id of the first guild channel 11 messages
upbeat gale how do I get it? guild.channels.first isn't working (I recently updated from v12 to v14)
Property 'reply' does not exist on type 'Interaction<CacheType>' 4 messages
fierce rover typescript is give me this type error but when I run it it works as it should without errors ?????? do I need to downloa...
DiscordAPIError[10062] Unknown interaction 33 messages
near shell Hello, when i try to run a command with my bot i have this error requestBody: { files: [], json: { type: 4, data: [Ob...
Error 8 messages
summer mantle ```json errors: { components: { '0': { components: { _errors: [Array] } } } }, message: 'Invalid Form Body...
Do shards stay consistent? 6 messages
drowsy crest Like if one server is on a certain shard and I'm using the automatic settings for totalShards, will that server always b...
Discord bot that disconnects after a few minutes/hours 10 messages
grizzled delta Hello, I have an official Apex Legends discord server admin who gave me the bot they developed for their servers. The bo...
Multiple lines in slash command arguments 3 messages
paper crescent It's been a while since I moved away from discord.js and I would like to know if it already accepts multiple lines in th...
thread.archived returning incorrect boolean 10 messages
solid mantle I'm using the threadUpdate event to check when a forum post gets automatically archived. I then compare oldThread and ne...
Command unban : user.id 25 messages
severe nimbus Hello, I have an error, can you help me?