Opzo
Opzo
DIAdiscord.js - Imagine an app
Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
okay mb thx
49 replies
DIAdiscord.js - Imagine an app
Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
No description
49 replies
DIAdiscord.js - Imagine an app
Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
i have only for select
49 replies
DIAdiscord.js - Imagine an app
Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
in other file
49 replies
DIAdiscord.js - Imagine an app
Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
I FOUND
49 replies
DIAdiscord.js - Imagine an app
Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
OH
49 replies
DIAdiscord.js - Imagine an app
Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
whoops
49 replies
DIAdiscord.js - Imagine an app
Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
you mean
49 replies
DIAdiscord.js - Imagine an app
Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
oh
49 replies
DIAdiscord.js - Imagine an app
Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
this way
49 replies
DIAdiscord.js - Imagine an app
Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
handleInteraction: async (interaction, client) => {
console.log("Received Interaction:", interaction);

if (interaction.isStringSelectMenu()) {
const selectedSetting = interaction.values[0];
console.log("Select Menu Interaction:", interaction.customId, interaction.values);

if (interaction.customId === "settings_disable") {
await client.updateServerSettings(interaction.guild.id, { [selectedSetting]: null });
return await interaction.reply({ content: `✅ Disabled **${selectedSetting}** successfully!`, ephemeral: true });
}

if (interaction.customId === "settings_select") {...}
handleInteraction: async (interaction, client) => {
console.log("Received Interaction:", interaction);

if (interaction.isStringSelectMenu()) {
const selectedSetting = interaction.values[0];
console.log("Select Menu Interaction:", interaction.customId, interaction.values);

if (interaction.customId === "settings_disable") {
await client.updateServerSettings(interaction.guild.id, { [selectedSetting]: null });
return await interaction.reply({ content: `✅ Disabled **${selectedSetting}** successfully!`, ephemeral: true });
}

if (interaction.customId === "settings_select") {...}
49 replies
DIAdiscord.js - Imagine an app
Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
i've did /settings disable -> select menu -> used one option (none of them works) -> and discord said that it is not working
49 replies
DIAdiscord.js - Imagine an app
Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
not even console.log
49 replies
DIAdiscord.js - Imagine an app
Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
for disable
49 replies
DIAdiscord.js - Imagine an app
Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
aaand
49 replies
DIAdiscord.js - Imagine an app
Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
but set works so dont think about this
49 replies
DIAdiscord.js - Imagine an app
Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
so this will be for /settings set -> menu -> modal
Select Menu Interaction: settings_select [ 'associationsChannel' ]

Modal Submit Interaction: settings_modal_associationsChannel Collection(1) [Map] {
'channel' => { value: 'xd', type: 4, customId: 'channel' }
}
Select Menu Interaction: settings_select [ 'associationsChannel' ]

Modal Submit Interaction: settings_modal_associationsChannel Collection(1) [Map] {
'channel' => { value: 'xd', type: 4, customId: 'channel' }
}
49 replies
DIAdiscord.js - Imagine an app
Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
let me see
49 replies
DIAdiscord.js - Imagine an app
Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
so i will tell 1 one
49 replies
DIAdiscord.js - Imagine an app
Created by Opzo on 3/2/2025 in #djs-questions
Interaction Select Menu
and there is no misatke with names
49 replies