Update rolemenu.ts - Fixed rolemenu

pull/95/head
PineappleFan 3 years ago committed by GitHub
parent 83fd1fd0b1
commit 0c1d9bf10d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -477,7 +477,7 @@ const callback = async (interaction: CommandInteraction): Promise<void> => {
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 @@ const callback = async (interaction: CommandInteraction): Promise<void> => {
}
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);

Loading…
Cancel
Save