aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/extensions')
-rw-r--r--src/lib/extensions/discord.js/BushGuild.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/extensions/discord.js/BushGuild.ts b/src/lib/extensions/discord.js/BushGuild.ts
index 8d3ae88..79f7c98 100644
--- a/src/lib/extensions/discord.js/BushGuild.ts
+++ b/src/lib/extensions/discord.js/BushGuild.ts
@@ -21,8 +21,7 @@ export class BushGuild extends Guild {
public async setSetting<K extends keyof GuildModel>(setting: K, value: GuildDB[K]): Promise<GuildDB> {
const row = (await GuildDB.findByPk(this.id)) ?? GuildDB.build({ id: this.id });
row[setting] = value;
- //@ts-ignore: idk why it thinks it doesn't exist
- this.client.cache.guilds.set(this.id, row.dataValues);
+ this.client.cache.guilds.set(this.id, row.toJSON() as GuildDB);
return await row.save();
}