diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-05-28 20:13:49 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-05-28 20:13:49 -0400 |
commit | 25cf269e2e793de5fefb9aa3f19fb167168e06c6 (patch) | |
tree | cd5f2f3c097a84a2483a70b57b3cbba7b6f4a6be /src/listeners/commands | |
parent | e220f8462bbfb26e3237df34923be4acc5d83fee (diff) | |
download | tanzanite-25cf269e2e793de5fefb9aa3f19fb167168e06c6.tar.gz tanzanite-25cf269e2e793de5fefb9aa3f19fb167168e06c6.tar.bz2 tanzanite-25cf269e2e793de5fefb9aa3f19fb167168e06c6.zip |
stuff
Diffstat (limited to 'src/listeners/commands')
-rw-r--r-- | src/listeners/commands/commandBlocked.ts | 4 | ||||
-rw-r--r-- | src/listeners/commands/commandError.ts | 4 | ||||
-rw-r--r-- | src/listeners/commands/commandStarted.ts | 8 | ||||
-rw-r--r-- | src/listeners/commands/slashCommandError.ts | 4 |
4 files changed, 5 insertions, 15 deletions
diff --git a/src/listeners/commands/commandBlocked.ts b/src/listeners/commands/commandBlocked.ts index a6a7e7e..916f7cd 100644 --- a/src/listeners/commands/commandBlocked.ts +++ b/src/listeners/commands/commandBlocked.ts @@ -13,9 +13,7 @@ export default class CommandBlockedListener extends BushListener { public async exec(message: Message, command: Command, reason: string): Promise<void> { switch (reason) { case 'owner': { - await message.util.send( - `You must be an owner to run command \`${message.util.parsed.command}\`` - ); + await message.util.send(`You must be an owner to run command \`${message.util.parsed.command}\``); break; } case 'blacklist': { diff --git a/src/listeners/commands/commandError.ts b/src/listeners/commands/commandError.ts index c5d6a74..0e52140 100644 --- a/src/listeners/commands/commandError.ts +++ b/src/listeners/commands/commandError.ts @@ -35,9 +35,7 @@ export default class CommandErrorListener extends BushListener { ` ); } - const channel = (await this.client.channels.fetch( - this.client.config.channels.log - )) as TextChannel; + const channel = (await this.client.channels.fetch(this.client.config.channels.log)) as TextChannel; await channel.send(errorDevEmbed); if (errorUserEmbed) await message.reply(errorUserEmbed); } diff --git a/src/listeners/commands/commandStarted.ts b/src/listeners/commands/commandStarted.ts index d81ed59..1c5b0c7 100644 --- a/src/listeners/commands/commandStarted.ts +++ b/src/listeners/commands/commandStarted.ts @@ -12,12 +12,8 @@ export default class CommandStartedListener extends BushListener { } exec(message: Message, command: BushCommand): void { this.client.logger.verbose( - chalk`{cyan {green ${message.author.tag}} is running {green ${ - command.aliases[0] - }} in {green ${ - message.channel instanceof DMChannel - ? 'DMs' - : `#${message.channel.name} (Server: ${message.guild.name})` + chalk`{cyan {green ${message.author.tag}} is running {green ${command.aliases[0]}} in {green ${ + message.channel instanceof DMChannel ? 'DMs' : `#${message.channel.name} (Server: ${message.guild.name})` }}.}` ); } diff --git a/src/listeners/commands/slashCommandError.ts b/src/listeners/commands/slashCommandError.ts index 32ccd90..e4c3bb0 100644 --- a/src/listeners/commands/slashCommandError.ts +++ b/src/listeners/commands/slashCommandError.ts @@ -35,9 +35,7 @@ export default class SlashCommandErrorListener extends BushListener { ` ); } - const channel = (await this.client.channels.fetch( - this.client.config.channels.log - )) as TextChannel; + const channel = (await this.client.channels.fetch(this.client.config.channels.log)) as TextChannel; await channel.send(errorDevEmbed); if (errorUserEmbed) await message.reply(errorUserEmbed); } |