TÆMBØ
DIAdiscord.js - Imagine an app
•Created by moodman on 11/11/2024 in #djs-questions
Discord.JS First Slash command guide not working
The enum member names are case-sensitive
32 replies
DIAdiscord.js - Imagine an app
•Created by moodman on 11/11/2024 in #djs-questions
Discord.JS First Slash command guide not working
Events.InteractionCreate
32 replies
DIAdiscord.js - Imagine an app
•Created by moodman on 11/11/2024 in #djs-questions
Discord.JS First Slash command guide not working
Ok, I would make sure your command files are actually being loaded
32 replies
DIAdiscord.js - Imagine an app
•Created by moodman on 11/11/2024 in #djs-questions
Discord.JS First Slash command guide not working
Are you transpiling it first and running the outputted JS or using something like ts-node?
32 replies
DIAdiscord.js - Imagine an app
•Created by moodman on 11/11/2024 in #djs-questions
Discord.JS First Slash command guide not working
How are you running the code?
32 replies
DIAdiscord.js - Imagine an app
•Created by !Mazen. on 11/3/2024 in #djs-questions
error
Whatever you're trying to parse is in fact not parsable
4 replies
DIAdiscord.js - Imagine an app
•Created by !Mazen. on 11/3/2024 in #djs-questions
error
A basic JS error
4 replies
DIAdiscord.js - Imagine an app
•Created by Makoto! on 10/30/2024 in #djs-questions
ephemeral is not working on button interaction.
This might be relevant for you then https://github.com/discordjs/discord.js/pull/10564
24 replies
DIAdiscord.js - Imagine an app
•Created by kuroiii on 10/22/2024 in #djs-questions
Context Commands Registering
Reload Discord once more and see. If they still end up not showing up, I suggest talking with folks in DDevs since this would be out control of d.js at this point
16 replies
DIAdiscord.js - Imagine an app
•Created by kuroiii on 10/22/2024 in #djs-questions
Context Commands Registering
Because your first screenshot suggests they are registering if they're showing up in your integration settings
16 replies
DIAdiscord.js - Imagine an app
•Created by kuroiii on 10/22/2024 in #djs-questions
Context Commands Registering
And not your bot
16 replies
DIAdiscord.js - Imagine an app
•Created by kuroiii on 10/22/2024 in #djs-questions
Context Commands Registering
As in, the app you're using to talk to me right now?
16 replies
DIAdiscord.js - Imagine an app
•Created by kuroiii on 10/22/2024 in #djs-questions
Context Commands Registering
Reload Discord
16 replies
DIAdiscord.js - Imagine an app
•Created by kuroiii on 10/22/2024 in #djs-questions
Context Commands Registering
What makes you think they aren't registered?
16 replies
DIAdiscord.js - Imagine an app
•Created by Sincerely, alxx ᴬᴳ on 10/20/2024 in #djs-questions
Make a select menu builder for certain roles?
Your actual StringSelectMenuInteraction you receive, whether that's from a collector or an event listener
13 replies
DIAdiscord.js - Imagine an app
•Created by Sincerely, alxx ᴬᴳ on 10/20/2024 in #djs-questions
Make a select menu builder for certain roles?
One way would be to include the role ID in your select menu option value, something like
role-menu-1234567890
, where you the parse the role ID out of that option's value and then simply call <StringSelectMenuInteraction>.member.roles.add(parsedRoleId)
13 replies
DIAdiscord.js - Imagine an app
•Created by Sincerely, alxx ᴬᴳ on 10/20/2024 in #djs-questions
Make a select menu builder for certain roles?
Discord does not support customizing which roles are shown in a role select menu, so you'll have to use a string select menu in this occasion and call
addOptions()
to add the options you want into the select menu13 replies
DIAdiscord.js - Imagine an app
•Created by Incorecc on 10/11/2024 in #djs-questions
Failure to push a slash command
You need to
return
the option in your addStringOption()
callback or remove the curly braces5 replies
DIAdiscord.js - Imagine an app
•Created by LukeZ on 10/10/2024 in #djs-questions
.getMember() with Typescript
If your app actually has access to the guild, sure
21 replies
DIAdiscord.js - Imagine an app
•Created by LukeZ on 10/10/2024 in #djs-questions
.getMember() with Typescript
This typeguard filters that out
21 replies