aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/other
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-31 13:46:27 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-31 13:46:27 -0400
commitedcc0dd0a9228192ff6c4f6d6797dd6238e98f92 (patch)
tree70c3f5436342d7f6b0e81222467d2773a3bb0b33 /src/listeners/other
parentb63a6b0cb61f0abf8a946a7f0f04a2a19a31e690 (diff)
downloadtanzanite-edcc0dd0a9228192ff6c4f6d6797dd6238e98f92.tar.gz
tanzanite-edcc0dd0a9228192ff6c4f6d6797dd6238e98f92.tar.bz2
tanzanite-edcc0dd0a9228192ff6c4f6d6797dd6238e98f92.zip
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.
Diffstat (limited to 'src/listeners/other')
-rw-r--r--src/listeners/other/consoleListener.ts2
-rw-r--r--src/listeners/other/promiseRejection.ts2
-rw-r--r--src/listeners/other/uncaughtException.ts2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/listeners/other/consoleListener.ts b/src/listeners/other/consoleListener.ts
index 6d548ba..4b3a6bd 100644
--- a/src/listeners/other/consoleListener.ts
+++ b/src/listeners/other/consoleListener.ts
@@ -12,7 +12,7 @@ export default class ConsoleListener extends BushListener {
});
}
- public async exec(line: string): Promise<void> {
+ public override async exec(line: string): Promise<void> {
if (line.startsWith('eval ') || line.startsWith('ev ')) {
const sh = promisify(exec),
bot = client,
diff --git a/src/listeners/other/promiseRejection.ts b/src/listeners/other/promiseRejection.ts
index e0a62c0..f2623c6 100644
--- a/src/listeners/other/promiseRejection.ts
+++ b/src/listeners/other/promiseRejection.ts
@@ -8,7 +8,7 @@ export default class PromiseRejectionListener extends BushListener {
});
}
- public async exec(error: Error): Promise<void> {
+ public override async exec(error: Error): Promise<void> {
void client.console.error('PromiseRejection', `An unhanded promise rejection occurred:\n${error?.stack || error}`, false);
void client.console.channelError({
embeds: [
diff --git a/src/listeners/other/uncaughtException.ts b/src/listeners/other/uncaughtException.ts
index f1714f7..76afab9 100644
--- a/src/listeners/other/uncaughtException.ts
+++ b/src/listeners/other/uncaughtException.ts
@@ -8,7 +8,7 @@ export default class UncaughtExceptionListener extends BushListener {
});
}
- public async exec(error: Error): Promise<void> {
+ public override async exec(error: Error): Promise<void> {
void client.console.error('uncaughtException', `An uncaught exception occurred:\n${error?.stack || error}`, false);
void client.console.channelError({
embeds: [