diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-25 18:27:29 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-25 18:27:29 -0400 |
commit | 2e539511a49ff993eded39751a2e768315ee4ff6 (patch) | |
tree | 32f0f1f512e87f2c0a9e4aa9db60fe2a349b1a71 /src/lib/extensions/discord.js | |
parent | 1d9691083645fac0389ec98adfa66c99f75d58ad (diff) | |
download | tanzanite-2e539511a49ff993eded39751a2e768315ee4ff6.tar.gz tanzanite-2e539511a49ff993eded39751a2e768315ee4ff6.tar.bz2 tanzanite-2e539511a49ff993eded39751a2e768315ee4ff6.zip |
some fixes
Diffstat (limited to 'src/lib/extensions/discord.js')
-rw-r--r-- | src/lib/extensions/discord.js/BushGuild.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/extensions/discord.js/BushGuild.ts b/src/lib/extensions/discord.js/BushGuild.ts index efc780d..908fcec 100644 --- a/src/lib/extensions/discord.js/BushGuild.ts +++ b/src/lib/extensions/discord.js/BushGuild.ts @@ -21,6 +21,7 @@ export class BushGuild extends Guild { } public async getSetting<K extends keyof GuildModel>(setting: K): Promise<GuildModel[K]> { + // client.console.debug(`getSetting: ${setting}`); return ( client.cache.guilds.get(this.id)?.[setting] ?? ((await GuildDB.findByPk(this.id)) ?? GuildDB.build({ id: this.id }))[setting] @@ -28,6 +29,7 @@ export class BushGuild extends Guild { } public async setSetting<K extends keyof GuildModel>(setting: K, value: GuildDB[K]): Promise<GuildDB> { + // client.console.debug(`setSetting: ${setting}`); const row = (await GuildDB.findByPk(this.id)) ?? GuildDB.build({ id: this.id }); row[setting] = value; client.cache.guilds.set(this.id, row.toJSON() as GuildDB); |