Update rolemenu.ts - Fixed rolemenu
diff --git a/src/commands/settings/rolemenu.ts b/src/commands/settings/rolemenu.ts
index dbdcb4c..47914c6 100644
--- a/src/commands/settings/rolemenu.ts
+++ b/src/commands/settings/rolemenu.ts
@@ -477,7 +477,7 @@
const cross = getEmojiByName("CONTROL.CROSS");
const tick = getEmojiByName("CONTROL.TICK");
embed.setDescription(
- `**Enabled:** ${config.roleMenu.enabled ? `${tick} Yes` : `${cross} No`}\n\n` +
+ `**Enabled:** ${currentObject.enabled ? `${tick} Yes` : `${cross} No`}\n\n` +
`**Pages:** ${currentObject.options.length}\n` +
(currentObject.options.length > 0
? currentObject.options
@@ -595,7 +595,8 @@
}
case "save": {
await client.database.guilds.write(interaction.guild.id, {
- "roleMenu.options": currentObject.options
+ "roleMenu.options": currentObject.options,
+ "rolemenu.enabled": currentObject.enabled
});
modified = false;
await client.memory.forceUpdate(interaction.guild.id);