From edcc0dd0a9228192ff6c4f6d6797dd6238e98f92 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sat, 31 Jul 2021 13:46:27 -0400 Subject: upgraded to typescript 4.3.5 The reason I had to use getters and setters for the db models is because in the newer version of typescript the properties would be defined at runtime and override the getter and setters that sequalize uses later, causing all the values to be undefined and not being able to save any information. --- src/listeners/client/interactionCreate.ts | 2 +- src/listeners/client/ready.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/listeners/client') diff --git a/src/listeners/client/interactionCreate.ts b/src/listeners/client/interactionCreate.ts index b0d1786..17249a9 100644 --- a/src/listeners/client/interactionCreate.ts +++ b/src/listeners/client/interactionCreate.ts @@ -10,7 +10,7 @@ export default class InteractionCreateListener extends BushListener { }); } - async exec(...[interaction]: ClientEvents['interactionCreate']): Promise { + public override async exec(...[interaction]: ClientEvents['interactionCreate']): Promise { if (!interaction) return; if (interaction.isCommand()) { void client.console.info( diff --git a/src/listeners/client/ready.ts b/src/listeners/client/ready.ts index 449ec42..39e583b 100644 --- a/src/listeners/client/ready.ts +++ b/src/listeners/client/ready.ts @@ -9,7 +9,7 @@ export default class ReadyListener extends BushListener { }); } - public async exec(): Promise { + public override async exec(): Promise { const tag = `<<${client.user.tag}>>`, guildCount = `<<${client.guilds.cache.size.toLocaleString()}>>`, userCount = `<<${client.users.cache.size.toLocaleString()}>>`; -- cgit