Plz fix
diff --git a/src/commands/mod/info.ts b/src/commands/mod/info.ts
index 6e9abed..61a01e2 100644
--- a/src/commands/mod/info.ts
+++ b/src/commands/mod/info.ts
@@ -159,12 +159,18 @@
if (openFilterPane) components = components.concat([
new ActionRowBuilder<Discord.StringSelectMenuBuilder>().addComponents(
new Discord.StringSelectMenuBuilder().setOptions(
- ...Object.entries(types).map(([key, value]) => new StringSelectMenuOptionBuilder()
- .setLabel(value.text)
- .setValue(key)
- .setDefault(filteredTypes.includes(key))
- .setEmoji(client.emojis.resolve(getEmojiByName(value.emoji, "id"))! as APIMessageComponentEmoji)
- )
+ // ...Object.entries(types).map(([key, value]) => new StringSelectMenuOptionBuilder()
+ // .setLabel(value.text)
+ // .setValue(key)
+ // .setDefault(filteredTypes.includes(key))
+ // .setEmoji(client.emojis.resolve(getEmojiByName(value.emoji, "id"))! as APIMessageComponentEmoji)
+ // )
+ ...Object.entries(types).map(([key, value]) => ({
+ label: value.text,
+ value: key,
+ default: filteredTypes.includes(key),
+ emoji: client.emojis.resolve(getEmojiByName(value.emoji, "id"))! as APIMessageComponentEmoji
+ }))
)
.setMinValues(1)
.setMaxValues(Object.keys(types).length)
diff --git a/src/utils/getEmojiByName.ts b/src/utils/getEmojiByName.ts
index 3fa2b53..350ed4c 100644
--- a/src/utils/getEmojiByName.ts
+++ b/src/utils/getEmojiByName.ts
@@ -5,6 +5,7 @@
}
function getEmojiByName(name: string | null, format?: string): string {
+ console.log(name)
if (!name) return "";
const parts = name.split(".");
let id: string | EmojisIndex | EmojisIndex[] | undefined = emojis;