pie
pie
DIAdiscord.js - Imagine an app
Created by pie on 7/26/2023 in #djs-questions
BASE_TYPE_MIN_LENGTH
5 replies
DIAdiscord.js - Imagine an app
Created by pie on 7/26/2023 in #djs-questions
Guild ID from audit log entry?
I'm trying to make a mod log system,. and thus am listening for audit log entry create events - however I can't see a property that is on ALL events that contains the guild ID? How could I get the guild ID reliably from audit log entry create events?
2 replies
DIAdiscord.js - Imagine an app
Created by pie on 7/25/2023 in #djs-questions
Can I use discord.js as an ES modules? And make use of import and export statements?
The above.
12 replies
DIAdiscord.js - Imagine an app
Created by pie on 6/25/2022 in #djs-questions
Not Affect SelectMenu Default Option When Editing a Message
Hey, whenever I edit a message with a selectmenu component on it that like the user has clicked, setting it as the default - the default just disappears and returns to the placeholder value. My current method is as follows:
existingInteraction.components[0].components[0].options.map((option) => {
if (option.value === SubCommand.id) option.default = true;
else option.default = false;
});
existingInteraction.components[0].components[0].options.map((option) => {
if (option.value === SubCommand.id) option.default = true;
else option.default = false;
});
However this feels really clunky and inefficient. How would I edit a message but maintain the current default value?
1 replies