aboutsummaryrefslogtreecommitdiff
path: root/src/commands/utilities
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/commands/utilities
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/commands/utilities')
-rw-r--r--src/commands/utilities/decode.ts2
-rw-r--r--src/commands/utilities/hash.ts2
-rw-r--r--src/commands/utilities/price.ts2
-rw-r--r--src/commands/utilities/serverStatus.ts2
-rw-r--r--src/commands/utilities/uuid.ts2
-rw-r--r--src/commands/utilities/viewraw.ts2
-rw-r--r--src/commands/utilities/whoHasRole.ts2
7 files changed, 7 insertions, 7 deletions
diff --git a/src/commands/utilities/decode.ts b/src/commands/utilities/decode.ts
index cab23d8..3fb340d 100644
--- a/src/commands/utilities/decode.ts
+++ b/src/commands/utilities/decode.ts
@@ -88,7 +88,7 @@ export default class DecodeCommand extends BushCommand {
});
}
- public async exec(
+ public override async exec(
message: BushMessage | AkairoMessage,
{ from, to, data }: { from: BufferEncoding; to: BufferEncoding; data: string }
): Promise<unknown> {
diff --git a/src/commands/utilities/hash.ts b/src/commands/utilities/hash.ts
index fcf2da3..633a263 100644
--- a/src/commands/utilities/hash.ts
+++ b/src/commands/utilities/hash.ts
@@ -26,7 +26,7 @@ export default class HashCommand extends BushCommand {
});
}
- public async exec(message: BushMessage, { url }: { url: string }): Promise<void> {
+ public override async exec(message: BushMessage, { url }: { url: string }): Promise<void> {
try {
const req = await got.get(url);
const rawHash = crypto.createHash('md5');
diff --git a/src/commands/utilities/price.ts b/src/commands/utilities/price.ts
index 38cd8ca..a68c01d 100644
--- a/src/commands/utilities/price.ts
+++ b/src/commands/utilities/price.ts
@@ -97,7 +97,7 @@ export default class PriceCommand extends BushCommand {
});
}
- public async exec(message: BushMessage, { item, strict }: { item: string; strict: boolean }): Promise<unknown> {
+ public override async exec(message: BushMessage, { item, strict }: { item: string; strict: boolean }): Promise<unknown> {
const errors = new Array<string>();
const [bazaar, currentLowestBIN, averageLowestBIN, auctionAverages] = (
diff --git a/src/commands/utilities/serverStatus.ts b/src/commands/utilities/serverStatus.ts
index b9d6136..02db638 100644
--- a/src/commands/utilities/serverStatus.ts
+++ b/src/commands/utilities/serverStatus.ts
@@ -19,7 +19,7 @@ export default class ServerStatusCommand extends BushCommand {
});
}
- public async exec(message: BushMessage): Promise<void> {
+ public override async exec(message: BushMessage): Promise<void> {
const msgEmbed: MessageEmbed = new MessageEmbed()
.setTitle('Server status')
.setDescription(`Checking server:\n${util.emojis.loading}`)
diff --git a/src/commands/utilities/uuid.ts b/src/commands/utilities/uuid.ts
index 02ca506..06856d9 100644
--- a/src/commands/utilities/uuid.ts
+++ b/src/commands/utilities/uuid.ts
@@ -29,7 +29,7 @@ export default class UuidCommand extends BushCommand {
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
- public async exec(message: BushMessage, { ign }: { ign: { match: any[]; matches: any[] } }): Promise<unknown> {
+ public override async exec(message: BushMessage, { ign }: { ign: { match: any[]; matches: any[] } }): Promise<unknown> {
if (!ign) return await message.util.reply(`${util.emojis.error} Please enter a valid ign.`);
const readableIGN = ign.match[0];
try {
diff --git a/src/commands/utilities/viewraw.ts b/src/commands/utilities/viewraw.ts
index ca21b4b..46353ba 100644
--- a/src/commands/utilities/viewraw.ts
+++ b/src/commands/utilities/viewraw.ts
@@ -43,7 +43,7 @@ export default class ViewRawCommand extends BushCommand {
});
}
- public async exec(
+ public override async exec(
message: BushMessage | BushSlashMessage,
args: { message: Message | BigInt; channel: TextChannel | NewsChannel | DMChannel; json?: boolean }
): Promise<unknown> {
diff --git a/src/commands/utilities/whoHasRole.ts b/src/commands/utilities/whoHasRole.ts
index 4bd81bb..a6c4665 100644
--- a/src/commands/utilities/whoHasRole.ts
+++ b/src/commands/utilities/whoHasRole.ts
@@ -36,7 +36,7 @@ export default class WhoHasRoleCommand extends BushCommand {
userPermissions: ['SEND_MESSAGES']
});
}
- public async exec(message: BushMessage | BushSlashMessage, args: { role: Role }): Promise<unknown> {
+ public override async exec(message: BushMessage | BushSlashMessage, args: { role: Role }): Promise<unknown> {
const roleMembers = args.role.members.map((member) => `${member.user} (${Util.escapeMarkdown(member.user.tag)})`);
const chunkedRoleMembers = util.chunk(roleMembers, 30);