SuitSnap
SuitSnap
DIAdiscord.js - Imagine an app
Created by SuitSnap on 7/28/2023 in #djs-questions
Channel Select Menu doesn't seem to function?
and that was perchance an error
12 replies
DIAdiscord.js - Imagine an app
Created by SuitSnap on 7/28/2023 in #djs-questions
Channel Select Menu doesn't seem to function?
nahh
12 replies
DIAdiscord.js - Imagine an app
Created by SuitSnap on 7/28/2023 in #djs-questions
Channel Select Menu doesn't seem to function?
i looked right at the docs and just went
12 replies
DIAdiscord.js - Imagine an app
Created by SuitSnap on 7/28/2023 in #djs-questions
Channel Select Menu doesn't seem to function?
mb
12 replies
DIAdiscord.js - Imagine an app
Created by SuitSnap on 7/28/2023 in #djs-questions
Channel Select Menu doesn't seem to function?
oh im so dumb lol
12 replies
DIAdiscord.js - Imagine an app
Created by SuitSnap on 7/28/2023 in #djs-questions
Channel Select Menu doesn't seem to function?
Oh, sorry for the ping reply, meant to just silent reply
12 replies
DIAdiscord.js - Imagine an app
Created by SuitSnap on 7/28/2023 in #djs-questions
Channel Select Menu doesn't seem to function?
async execute(interaction) {
const subcommand = interaction.options.getSubcommand();

switch (subcommand) {
case "add_channels":
let addChannelSelectMenu = await addChannels();
await interaction.reply({
content: `Test`,
components: [addChannelSelectMenu],
});
break;

case "create_channels":
createChannels();
break;
}
},
};

async function addChannels() {
const addChannelSelectMenu = new ChannelSelectMenuBuilder({
custom_id: `add_team_channels`,
})
.addChannelTypes(ChannelType.GuildText, ChannelType.GuildVoice)
.setPlaceholder(`Select team channels!`);
console.log(addChannelSelectMenu);
return addChannelSelectMenu;
}
async execute(interaction) {
const subcommand = interaction.options.getSubcommand();

switch (subcommand) {
case "add_channels":
let addChannelSelectMenu = await addChannels();
await interaction.reply({
content: `Test`,
components: [addChannelSelectMenu],
});
break;

case "create_channels":
createChannels();
break;
}
},
};

async function addChannels() {
const addChannelSelectMenu = new ChannelSelectMenuBuilder({
custom_id: `add_team_channels`,
})
.addChannelTypes(ChannelType.GuildText, ChannelType.GuildVoice)
.setPlaceholder(`Select team channels!`);
console.log(addChannelSelectMenu);
return addChannelSelectMenu;
}
12 replies
DIAdiscord.js - Imagine an app
Created by SuitSnap on 5/29/2023 in #djs-questions
Limit reactions to one per message
Forgot to say but reactionCount is a Collection!
3 replies