Danial
Danial
DIAdiscord.js - Imagine an app
Created by Danial on 7/3/2023 in #djs-questions
Which things are always cached with the Guilds intent?
I wanna have a list of things that are always cached with Guilds intent so I know when to get from cache and when to fetch, so there's guilds, guild channels, roles, emojis, voice states (not sure about this one), am I missing something? Also, are there other things that are always cached given you have some intent needed for it?
7 replies
DIAdiscord.js - Imagine an app
Created by Danial on 8/15/2022 in #djs-questions
Responding to Select Menus Options
Hey, I've made a Select Menu with 2 options, and I understand how to make the bot receive interaction as far the Select Menu goes, but I am having trouble understanding how to filter out each of the option and send an embed depending on that This is the code for the Select Menu:
let SelectMenu = new Discord.ActionRowBuilder().setComponents(
new Discord.SelectMenuBuilder()
.setCustomId("categories")
.setPlaceholder("Select a Help Category!")
.setOptions([
{ label: "General", value: "General" },
{ label: "Fun", value: "Fun" },
])
);
let SelectMenu = new Discord.ActionRowBuilder().setComponents(
new Discord.SelectMenuBuilder()
.setCustomId("categories")
.setPlaceholder("Select a Help Category!")
.setOptions([
{ label: "General", value: "General" },
{ label: "Fun", value: "Fun" },
])
);
23 replies
DIAdiscord.js - Imagine an app
Created by Danial on 8/11/2022 in #djs-questions
TypeError [CommandInteractionOptionType]
I am trying to make a command where the user can choose an amount and that amount will later be used in an interaction. When I define the amount in the code itself, it works just fine, but when the user puts in the amount with the help of NumberOption, it gives this error:
Option "amount" is of type: 10; expected 3
Option "amount" is of type: 10; expected 3
7 replies