lupus
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
DIAdiscord.js - Imagine an app
•Created by cloud on 9/20/2024 in #djs-questions
which perms do i need
Hmm, if you give the bot admin on the other server, does it start working?
40 replies
DIAdiscord.js - Imagine an app
•Created by cloud on 9/20/2024 in #djs-questions
which perms do i need
Instead of checking whether communicationDisabledUntil is a false value. That function explicitly returns true/false without potentially guessing.
40 replies
DIAdiscord.js - Imagine an app
•Created by cloud on 9/20/2024 in #djs-questions
which perms do i need
Yeah, that makes sense in some way, but I'm not sure what perm guildmemberupdate is linked to.
40 replies
DIAdiscord.js - Imagine an app
•Created by cloud on 9/20/2024 in #djs-questions
which perms do i need
Are there any other notable differences?
40 replies
DIAdiscord.js - Imagine an app
•Created by cloud on 9/20/2024 in #djs-questions
which perms do i need
Are you actually registering the event somewhere?
40 replies
DIAdiscord.js - Imagine an app
•Created by cloud on 9/20/2024 in #djs-questions
which perms do i need
You'd need Guilds/GuildMembers intent, but we can't really see your client definition.
40 replies
DIAdiscord.js - Imagine an app
•Created by Liam on 9/9/2024 in #djs-questions
Message collector not working
Just to make sure, try to create a messageCreate event handler and see if that catches the message.
9 replies
DIAdiscord.js - Imagine an app
•Created by Nassim on 8/27/2024 in #djs-voice
running multiple bots with one script
And you're sure your connection can handle that? You could try logging debug/warn events.
14 replies
DIAdiscord.js - Imagine an app
•Created by Nassim on 8/27/2024 in #djs-voice
running multiple bots with one script
Alright, the process doesn't crash but the bots go offline, right?
14 replies
DIAdiscord.js - Imagine an app
•Created by Nassim on 8/27/2024 in #djs-voice
running multiple bots with one script
Uuh, Task Manager? I'm just using that on Windows, I haven't heard of any "special" other took for it.
14 replies