aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/commands
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-06-14 22:51:48 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-06-14 22:51:48 -0400
commitd055e0dbb86ef7fd4ee96a1531b51181e825fb4b (patch)
treee2ed9e956f2d8167e7f225383f9917e66d2a2803 /src/listeners/commands
parent335f7c30994fc8c4e787f407dfd4c2de63b400e3 (diff)
downloadtanzanite-d055e0dbb86ef7fd4ee96a1531b51181e825fb4b.tar.gz
tanzanite-d055e0dbb86ef7fd4ee96a1531b51181e825fb4b.tar.bz2
tanzanite-d055e0dbb86ef7fd4ee96a1531b51181e825fb4b.zip
made a few changes
Diffstat (limited to 'src/listeners/commands')
-rw-r--r--src/listeners/commands/commandError.ts10
-rw-r--r--src/listeners/commands/slashCommandError.ts10
2 files changed, 8 insertions, 12 deletions
diff --git a/src/listeners/commands/commandError.ts b/src/listeners/commands/commandError.ts
index 0e52140..06aa55f 100644
--- a/src/listeners/commands/commandError.ts
+++ b/src/listeners/commands/commandError.ts
@@ -1,9 +1,7 @@
+import { stripIndents } from 'common-tags';
+import { Message, MessageEmbed, TextChannel } from 'discord.js';
import { BushCommand } from '../../lib/extensions/BushCommand';
import { BushListener } from '../../lib/extensions/BushListener';
-import { stripIndents } from 'common-tags';
-import { Message } from 'discord.js';
-import { MessageEmbed } from 'discord.js';
-import { TextChannel } from 'discord.js';
export default class CommandErrorListener extends BushListener {
constructor() {
@@ -36,7 +34,7 @@ export default class CommandErrorListener extends BushListener {
);
}
const channel = (await this.client.channels.fetch(this.client.config.channels.log)) as TextChannel;
- await channel.send(errorDevEmbed);
- if (errorUserEmbed) await message.reply(errorUserEmbed);
+ await channel.send({ embeds: [errorDevEmbed] });
+ if (errorUserEmbed) await message.reply({ embeds: [errorUserEmbed] });
}
}
diff --git a/src/listeners/commands/slashCommandError.ts b/src/listeners/commands/slashCommandError.ts
index e4c3bb0..b8d9b6b 100644
--- a/src/listeners/commands/slashCommandError.ts
+++ b/src/listeners/commands/slashCommandError.ts
@@ -1,9 +1,7 @@
+import { stripIndents } from 'common-tags';
+import { CommandInteraction, MessageEmbed, TextChannel } from 'discord.js';
import { BushCommand } from '../../lib/extensions/BushCommand';
import { BushListener } from '../../lib/extensions/BushListener';
-import { stripIndents } from 'common-tags';
-import { MessageEmbed } from 'discord.js';
-import { TextChannel } from 'discord.js';
-import { CommandInteraction } from 'discord.js';
export default class SlashCommandErrorListener extends BushListener {
constructor() {
@@ -36,7 +34,7 @@ export default class SlashCommandErrorListener extends BushListener {
);
}
const channel = (await this.client.channels.fetch(this.client.config.channels.log)) as TextChannel;
- await channel.send(errorDevEmbed);
- if (errorUserEmbed) await message.reply(errorUserEmbed);
+ await channel.send({ embeds: [errorDevEmbed] });
+ if (errorUserEmbed) await message.reply({ embeds: [errorUserEmbed] });
}
}