diff --git a/src/commands/forwardToOwner.ts b/src/commands/forwardToOwner.ts index 207eab7..b638c28 100644 --- a/src/commands/forwardToOwner.ts +++ b/src/commands/forwardToOwner.ts @@ -16,7 +16,6 @@ import { type Message, } from "discord.js"; import { ids } from "../config/ids.js"; -import { logger } from "../utils/logger.js"; const buildForwardedEmbed = (message: Message): EmbedBuilder => { const forwardedEmbed = new EmbedBuilder(). @@ -87,7 +86,6 @@ Promise => { replyText = `${replyText} (Naomi's DMs might be closed)`; } await interaction.editReply(replyText); - await logger.error("operation", error); } }; diff --git a/src/index.ts b/src/index.ts index 47634b1..8736373 100644 --- a/src/index.ts +++ b/src/index.ts @@ -124,18 +124,21 @@ amari.discord.on(Events.InteractionCreate, (interaction) => { if (interaction.isButton() && interaction.customId === "resolve") { if (interaction.user.id !== ids.users.naomi) { - return void interaction.reply({ + void interaction.reply({ content: "Who are you????", flags: [ MessageFlags.Ephemeral ], }); + return; } - return void interaction.message.delete(); + void interaction.message.delete(); + return; } if (interaction.isAutocomplete()) { - return void interaction; + void interaction; + return; } - return void interaction.reply({ + void interaction.reply({ content: "What?", flags: [ MessageFlags.Ephemeral ], });