tate
tate
DIAdiscord.js - Imagine an app
Created by tate on 3/14/2025 in #djs-questions
Clear the select menu options.
anyways thanks for trying!
110 replies
DIAdiscord.js - Imagine an app
Created by tate on 3/14/2025 in #djs-questions
Clear the select menu options.
not like discord.js and such
110 replies
DIAdiscord.js - Imagine an app
Created by tate on 3/14/2025 in #djs-questions
Clear the select menu options.
it is discord thought correct/
110 replies
DIAdiscord.js - Imagine an app
Created by tate on 3/14/2025 in #djs-questions
Clear the select menu options.
but anyways, thanks!
110 replies
DIAdiscord.js - Imagine an app
Created by tate on 3/14/2025 in #djs-questions
Clear the select menu options.
its just a quality of life thing for users ig
110 replies
DIAdiscord.js - Imagine an app
Created by tate on 3/14/2025 in #djs-questions
Clear the select menu options.
right, changing the channel does
110 replies
DIAdiscord.js - Imagine an app
Created by tate on 3/14/2025 in #djs-questions
Clear the select menu options.
lol thats odd.
110 replies
DIAdiscord.js - Imagine an app
Created by tate on 3/14/2025 in #djs-questions
Clear the select menu options.
so like it just isn't supposed to clear
110 replies
DIAdiscord.js - Imagine an app
Created by tate on 3/14/2025 in #djs-questions
Clear the select menu options.
is it a discord bug?
110 replies
DIAdiscord.js - Imagine an app
Created by tate on 3/14/2025 in #djs-questions
Clear the select menu options.
they just don't clear?
110 replies
DIAdiscord.js - Imagine an app
Created by tate on 3/14/2025 in #djs-questions
Clear the select menu options.
ok
110 replies
DIAdiscord.js - Imagine an app
Created by tate on 3/14/2025 in #djs-questions
Clear the select menu options.
i am doing a channel one for testing though
110 replies
DIAdiscord.js - Imagine an app
Created by tate on 3/14/2025 in #djs-questions
Clear the select menu options.
all good mate
110 replies
DIAdiscord.js - Imagine an app
Created by tate on 3/14/2025 in #djs-questions
Clear the select menu options.
no
110 replies
DIAdiscord.js - Imagine an app
Created by tate on 3/14/2025 in #djs-questions
Clear the select menu options.
const { EmbedBuilder, ChannelSelectMenuBuilder, RoleSelectMenuBuilder, ChannelType, MessageFlags, ActionRowBuilder, ActionRow } = require('discord.js')
const CrabConfig = require('../../schemas/CrabConfig')

module.exports = {
customId: 'crab-sm_shift-log',
execute: async (interaction) => {
const selectedChannel = interaction.values[0]
const components = interaction.message.components
const row1 = ActionRowBuilder.from(components[0])
const row2 = ActionRowBuilder.from(components[1])
const row3 = ActionRowBuilder.from(components[2])
console.log(components)
await CrabConfig.findOneAndUpdate(
{ guildId: interaction.guild.id },
{ $set: { shift_Logs: selectedChannel } },
{ upsert: true, new: true }
)
await interaction.update({ components: interaction.message.components })
await interaction.followUp({ content: `You have selected <#${selectedChannel}> as the shift log channel.`, flags: MessageFlags.Ephemeral })
}
}
const { EmbedBuilder, ChannelSelectMenuBuilder, RoleSelectMenuBuilder, ChannelType, MessageFlags, ActionRowBuilder, ActionRow } = require('discord.js')
const CrabConfig = require('../../schemas/CrabConfig')

module.exports = {
customId: 'crab-sm_shift-log',
execute: async (interaction) => {
const selectedChannel = interaction.values[0]
const components = interaction.message.components
const row1 = ActionRowBuilder.from(components[0])
const row2 = ActionRowBuilder.from(components[1])
const row3 = ActionRowBuilder.from(components[2])
console.log(components)
await CrabConfig.findOneAndUpdate(
{ guildId: interaction.guild.id },
{ $set: { shift_Logs: selectedChannel } },
{ upsert: true, new: true }
)
await interaction.update({ components: interaction.message.components })
await interaction.followUp({ content: `You have selected <#${selectedChannel}> as the shift log channel.`, flags: MessageFlags.Ephemeral })
}
}
110 replies
DIAdiscord.js - Imagine an app
Created by tate on 3/14/2025 in #djs-questions
Clear the select menu options.
same thing
110 replies
DIAdiscord.js - Imagine an app
Created by tate on 3/14/2025 in #djs-questions
Clear the select menu options.
ActionRowBuilder.from(components[0])?
110 replies
DIAdiscord.js - Imagine an app
Created by tate on 3/14/2025 in #djs-questions
Clear the select menu options.
🦀 Logged in as Crab!
🌺 Connected to DB.
[
ActionRow {
data: { type: 1, id: 1 },
components: [ [ChannelSelectMenuComponent] ]
},
ActionRow {
data: { type: 1, id: 3 },
components: [ [RoleSelectMenuComponent] ]
},
ActionRow {
data: { type: 1, id: 5 },
components: [ [RoleSelectMenuComponent] ]
}
]
🦀 Logged in as Crab!
🌺 Connected to DB.
[
ActionRow {
data: { type: 1, id: 1 },
components: [ [ChannelSelectMenuComponent] ]
},
ActionRow {
data: { type: 1, id: 3 },
components: [ [RoleSelectMenuComponent] ]
},
ActionRow {
data: { type: 1, id: 5 },
components: [ [RoleSelectMenuComponent] ]
}
]
110 replies
DIAdiscord.js - Imagine an app
Created by tate on 3/14/2025 in #djs-questions
Clear the select menu options.
yes
110 replies
DIAdiscord.js - Imagine an app
Created by tate on 3/14/2025 in #djs-questions
Clear the select menu options.
no i did not
110 replies