diff options
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); } |
