generated from nhcarrigan/template
fix: solve linter error
This commit is contained in:
@@ -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<void> => {
|
||||
replyText = `${replyText} (Naomi's DMs might be closed)`;
|
||||
}
|
||||
await interaction.editReply(replyText);
|
||||
await logger.error("operation", error);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
+7
-4
@@ -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 ],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user