lupus
DIAdiscord.js - Imagine an app
•Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
No worries, just mark it as Solved above.
49 replies
DIAdiscord.js - Imagine an app
•Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
And you put the console log right at the top of interactionCreate?
49 replies
DIAdiscord.js - Imagine an app
•Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
Just to check whether you actually receive it.
49 replies
DIAdiscord.js - Imagine an app
•Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
Then can you log the custom ids of all interactions somewhere?
49 replies
DIAdiscord.js - Imagine an app
•Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
Or you'll have to explain the flow of the user interaction here.
49 replies
DIAdiscord.js - Imagine an app
•Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
And the select menu has the custom id settings_disable? If so, you mistakenly set it as settings_select somewhere.
49 replies
DIAdiscord.js - Imagine an app
•Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
This logs
settings_select
?49 replies
DIAdiscord.js - Imagine an app
•Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
So the settings_disable part isn't working? Where are you setting the custom id for the modal (if that what's supposed to call this)?
49 replies
DIAdiscord.js - Imagine an app
•Created by Maksym_Tyvoniuk on 1/30/2025 in #djs-questions
Put all webhooks in choices
Yes, you can fetch all Webhooks of a Guild using
<Guild>.fetchWebhooks()
(you may need to cache them) and then supply them via Autocomplete (as in Autocomplete Interactions).6 replies
DIAdiscord.js - Imagine an app
•Created by ABDHP on 1/19/2025 in #djs-questions
Working with Rest API
guildVoiceStates is for Stage channels according to their docs I think: https://discord.com/developers/docs/resources/voice#modify-user-voice-state
5 replies
DIAdiscord.js - Imagine an app
•Created by Maitre Kobayashi on 1/19/2025 in #djs-questions
Vote Member détection : Command slash
Yes, that's possible using the ways I just mentioned above.
- Listen for messages
- Use either the embeds or interaction property to check whether it's the message you're looking for
- Get the user who voted by using the interactionMetadata property or parse the mention insode of the embed
- Do whatever you want with that user (e. g. send a message mentioning that user).
11 replies
DIAdiscord.js - Imagine an app
•Created by Maitre Kobayashi on 1/19/2025 in #djs-questions
Vote Member détection : Command slash
You mean which user is voting? You can either parse the mention or use
<Message>.interactionactionMetadata.user
.11 replies
DIAdiscord.js - Imagine an app
•Created by Maitre Kobayashi on 1/19/2025 in #djs-questions
Vote Member détection : Command slash
You seem to be already doing the second one in your code though.
11 replies
DIAdiscord.js - Imagine an app
•Created by Maitre Kobayashi on 1/19/2025 in #djs-questions
Vote Member détection : Command slash
You can either use
<Message>.interaction.commandName
and compare that with the name of the command - note that this is deprecated and may be removed.
Or you can compare <Message>.embeds[0].description
with the description present inside the embed.11 replies
DIAdiscord.js - Imagine an app
•Created by Maitre Kobayashi on 1/19/2025 in #djs-questions
Vote Member détection : Command slash
You definitely can detect the content of the embed using
<Message>.embeds
. You may be able to get some information regarding the command using <Message>.interactionMetadata
but I can't find a commandName property there.11 replies
DIAdiscord.js - Imagine an app
•Created by Bacio001 on 1/16/2025 in #djs-questions
Dual Hosting
If you host it on two different hosts (and you always use those) you could try implementing some mechanism outside of the discord API, but other than that it’s mostly just guesswork.
12 replies
DIAdiscord.js - Imagine an app
•Created by Renssus on 1/6/2025 in #djs-questions
our bot doesnt start up fully
Specifically, ask them what they put in the
Start Configuration
section of the Egg - it'll react to that phrase being printed.13 replies
DIAdiscord.js - Imagine an app
•Created by wacuus on 1/5/2025 in #djs-questions
Why am i have something like this
And when you click on the button it doesn't?
9 replies
DIAdiscord.js - Imagine an app
•Created by wacuus on 1/5/2025 in #djs-questions
Why am i have something like this
Does your URL lead to a file (with extension) or just some path?
9 replies