Skip to content

Commit 4d16595

Browse files
committed
refactor(events/InteractionCreate): change console log level
1 parent e8a1fe4 commit 4d16595

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/events/InteractionCreate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default class InteractionCreate extends Event {
3030
if (!interaction.isCommand()) return;
3131
if (!client.commands.has(interaction.commandName)) return;
3232
if (!(await this.isEnabled(interaction))) {
33-
interaction.reply({
33+
await interaction.reply({
3434
content: 'This command is disabled',
3535
ephemeral: true,
3636
});
@@ -41,7 +41,7 @@ export default class InteractionCreate extends Event {
4141
client.commands.get(interaction.commandName) as Command
4242
).execute(interaction);
4343
} catch (error) {
44-
console.error(error);
44+
console.warn(error);
4545
if (interaction.deferred || interaction.replied) return;
4646
await interaction.reply({
4747
content: 'Es gab einen Fehler beim Ausführen des Commands!',

0 commit comments

Comments
 (0)