diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-31 22:38:06 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-31 22:38:06 -0400 |
commit | c40a94697d64962edda41345e03fa76f51aa431c (patch) | |
tree | 1e258d51d6b19b9918f1d478b3f4c51dca3adc93 /src/listeners/commands | |
parent | 901d9dfc8c5d95b8c76519e700c624294d4df787 (diff) | |
download | tanzanite-c40a94697d64962edda41345e03fa76f51aa431c.tar.gz tanzanite-c40a94697d64962edda41345e03fa76f51aa431c.tar.bz2 tanzanite-c40a94697d64962edda41345e03fa76f51aa431c.zip |
upgrade typescript, improve workflow, bunch of bug fixes and some other things
Diffstat (limited to 'src/listeners/commands')
-rw-r--r-- | src/listeners/commands/commandBlocked.ts | 4 | ||||
-rw-r--r-- | src/listeners/commands/commandCooldown.ts | 4 | ||||
-rw-r--r-- | src/listeners/commands/commandError.ts | 6 | ||||
-rw-r--r-- | src/listeners/commands/commandMissingPermissions.ts | 2 | ||||
-rw-r--r-- | src/listeners/commands/commandStarted.ts | 6 | ||||
-rw-r--r-- | src/listeners/commands/messageBlocked.ts | 2 | ||||
-rw-r--r-- | src/listeners/commands/slashBlocked.ts | 2 | ||||
-rw-r--r-- | src/listeners/commands/slashCommandError.ts | 2 | ||||
-rw-r--r-- | src/listeners/commands/slashMissingPermissions.ts | 2 | ||||
-rw-r--r-- | src/listeners/commands/slashNotFound.ts | 2 | ||||
-rw-r--r-- | src/listeners/commands/slashStarted.ts | 2 |
11 files changed, 17 insertions, 17 deletions
diff --git a/src/listeners/commands/commandBlocked.ts b/src/listeners/commands/commandBlocked.ts index 074b6d6..4f9f492 100644 --- a/src/listeners/commands/commandBlocked.ts +++ b/src/listeners/commands/commandBlocked.ts @@ -1,5 +1,5 @@ -import { BushCommand, BushCommandHandlerEvents, BushListener, BushMessage, BushSlashMessage } from '@lib'; -import { InteractionReplyOptions, Message, MessagePayload, ReplyMessageOptions } from 'discord.js'; +import { BushListener, BushSlashMessage, type BushCommand, type BushCommandHandlerEvents, type BushMessage } from '@lib'; +import { type InteractionReplyOptions, type Message, type MessagePayload, type ReplyMessageOptions } from 'discord.js'; export default class CommandBlockedListener extends BushListener { public constructor() { diff --git a/src/listeners/commands/commandCooldown.ts b/src/listeners/commands/commandCooldown.ts index 118b676..b357ed8 100644 --- a/src/listeners/commands/commandCooldown.ts +++ b/src/listeners/commands/commandCooldown.ts @@ -1,4 +1,4 @@ -import { BushCommandHandlerEvents, BushListener } from '@lib'; +import { BushListener, type BushCommandHandlerEvents, type BushMessage } from '@lib'; export default class CommandCooldownListener extends BushListener { public constructor() { @@ -21,6 +21,6 @@ export default class CommandCooldownListener extends BushListener { content: `⏳ This command is on cooldown for ${Math.round(remaining / 1000)} seconds.`, ephemeral: true }) - : await message.react('⏳').catch(() => null); + : await (message as BushMessage).react('⏳').catch(() => null); } } diff --git a/src/listeners/commands/commandError.ts b/src/listeners/commands/commandError.ts index f29c7e0..a7303e8 100644 --- a/src/listeners/commands/commandError.ts +++ b/src/listeners/commands/commandError.ts @@ -1,7 +1,7 @@ -import { BushCommandHandlerEvents } from '@lib'; +import { type BushCommandHandlerEvents } from '@lib'; import { Severity } from '@sentry/types'; -import { AkairoMessage, Command, GuildTextBasedChannels } from 'discord-akairo'; -import { DMChannel, Formatters, Message, MessageEmbed } from 'discord.js'; +import { Command, type AkairoMessage, type GuildTextBasedChannels } from 'discord-akairo'; +import { Formatters, MessageEmbed, type DMChannel, type Message } from 'discord.js'; import { BushListener } from '../../lib/extensions/discord-akairo/BushListener'; export default class CommandErrorListener extends BushListener { diff --git a/src/listeners/commands/commandMissingPermissions.ts b/src/listeners/commands/commandMissingPermissions.ts index c8a3a6e..010682c 100644 --- a/src/listeners/commands/commandMissingPermissions.ts +++ b/src/listeners/commands/commandMissingPermissions.ts @@ -1,4 +1,4 @@ -import { BushCommandHandlerEvents, BushListener } from '@lib'; +import { BushListener, type BushCommandHandlerEvents } from '@lib'; export default class CommandMissingPermissionsListener extends BushListener { public constructor() { diff --git a/src/listeners/commands/commandStarted.ts b/src/listeners/commands/commandStarted.ts index 5d77d66..eff8c94 100644 --- a/src/listeners/commands/commandStarted.ts +++ b/src/listeners/commands/commandStarted.ts @@ -1,7 +1,7 @@ -import { BushCommandHandlerEvents, BushListener } from '@lib'; +import { BushListener, type BushCommandHandlerEvents } from '@lib'; import { Severity } from '@sentry/types'; -import { GuildTextBasedChannels } from 'discord-akairo'; -import { DMChannel } from 'discord.js'; +import { type GuildTextBasedChannels } from 'discord-akairo'; +import { type DMChannel } from 'discord.js'; export default class CommandStartedListener extends BushListener { public constructor() { diff --git a/src/listeners/commands/messageBlocked.ts b/src/listeners/commands/messageBlocked.ts index 0b1001c..7299eca 100644 --- a/src/listeners/commands/messageBlocked.ts +++ b/src/listeners/commands/messageBlocked.ts @@ -1,4 +1,4 @@ -import { BushCommandHandlerEvents, BushListener } from '@lib'; +import { BushListener, type BushCommandHandlerEvents } from '@lib'; export default class MessageBlockedListener extends BushListener { public constructor() { diff --git a/src/listeners/commands/slashBlocked.ts b/src/listeners/commands/slashBlocked.ts index 6c94187..b5c57bf 100644 --- a/src/listeners/commands/slashBlocked.ts +++ b/src/listeners/commands/slashBlocked.ts @@ -1,4 +1,4 @@ -import { BushCommandHandlerEvents, BushListener } from '@lib'; +import { BushListener, type BushCommandHandlerEvents } from '@lib'; import CommandBlockedListener from './commandBlocked'; export default class SlashBlockedListener extends BushListener { diff --git a/src/listeners/commands/slashCommandError.ts b/src/listeners/commands/slashCommandError.ts index 9b194e5..435e449 100644 --- a/src/listeners/commands/slashCommandError.ts +++ b/src/listeners/commands/slashCommandError.ts @@ -1,4 +1,4 @@ -import { BushCommandHandlerEvents, BushListener } from '@lib'; +import { BushListener, type BushCommandHandlerEvents } from '@lib'; import CommandErrorListener from './commandError'; export default class SlashCommandErrorListener extends BushListener { diff --git a/src/listeners/commands/slashMissingPermissions.ts b/src/listeners/commands/slashMissingPermissions.ts index 33a9363..969c0e9 100644 --- a/src/listeners/commands/slashMissingPermissions.ts +++ b/src/listeners/commands/slashMissingPermissions.ts @@ -1,4 +1,4 @@ -import { BushCommandHandlerEvents, BushListener } from '@lib'; +import { BushListener, type BushCommandHandlerEvents } from '@lib'; import CommandMissingPermissionsListener from './commandMissingPermissions'; export default class SlashMissingPermissionsListener extends BushListener { diff --git a/src/listeners/commands/slashNotFound.ts b/src/listeners/commands/slashNotFound.ts index c5d92bd..26635e8 100644 --- a/src/listeners/commands/slashNotFound.ts +++ b/src/listeners/commands/slashNotFound.ts @@ -1,4 +1,4 @@ -import { BushCommandHandlerEvents, BushListener } from '@lib'; +import { BushListener, type BushCommandHandlerEvents } from '@lib'; export default class SlashNotFoundListener extends BushListener { public constructor() { diff --git a/src/listeners/commands/slashStarted.ts b/src/listeners/commands/slashStarted.ts index e9e4028..46b6610 100644 --- a/src/listeners/commands/slashStarted.ts +++ b/src/listeners/commands/slashStarted.ts @@ -1,4 +1,4 @@ -import { BushCommandHandlerEvents, BushListener } from '@lib'; +import { BushListener, type BushCommandHandlerEvents } from '@lib'; export default class SlashStartedListener extends BushListener { public constructor() { |