Barnuss
Explore posts from serversDIAdiscord.js - Imagine an app
•Created by Barnuss on 8/9/2024 in #djs-questions
Get Option Label
I have a command with an option that has pre-defined text choices people can choose from. I get the value of the selected option on an interactionCreate event, but would it be possible to get the name / label of the option? Thanks!
4 replies
DIAdiscord.js - Imagine an app
•Created by Barnuss on 7/30/2024 in #djs-questions
User App Install
Is there any event I could receive to know when someone authorizes my app as a user application?
3 replies
DIAdiscord.js - Imagine an app
•Created by Barnuss on 7/22/2024 in #djs-questions
REST Crash
I am using the REST class of discord.js to edit messages with the interaction token, I am using .patch on the webhookMessage endpoint.
It normally works, but I sometimes get an invalid token error which crashes the entire server, even though the request is awaited and in a try catch block. What is the cause of this, are there any solutions? Ty!
24 replies
DIAdiscord.js - Imagine an app
•Created by Barnuss on 7/5/2024 in #djs-questions
Edit Interaction Reply
Hey! I have a slash command that replies with an embed message containing button components. How could I edit the reply of the original reply when the button is pressed?
I'd like to avoid using interaction.message.edit() as it can be a pain permission-wise. Is there a way to use interaction.editReply()?
10 replies