Clear cache after updating guild settings
diff --git a/src/commands/settings/rolemenu.ts b/src/commands/settings/rolemenu.ts
index cccb6f6..ae174b3 100644
--- a/src/commands/settings/rolemenu.ts
+++ b/src/commands/settings/rolemenu.ts
@@ -436,8 +436,9 @@
break;
}
case "save": {
- client.database.guilds.write(interaction.guild.id, {"roleMenu.options": currentObject});
+ await client.database.guilds.write(interaction.guild.id, {"roleMenu.options": currentObject});
modified = false;
+ await client.memory.forceUpdate(interaction.guild.id);
break;
}
}