diff --git a/Discord/src/commands/player/UnlockCommand.ts b/Discord/src/commands/player/UnlockCommand.ts index 3c4492fff..7fc069a5b 100644 --- a/Discord/src/commands/player/UnlockCommand.ts +++ b/Discord/src/commands/player/UnlockCommand.ts @@ -6,7 +6,12 @@ import {SlashCommandBuilderGenerator} from "../SlashCommandBuilderGenerator"; import {SlashCommandBuilder} from "@discordjs/builders"; import {DiscordCache} from "../../bot/DiscordCache"; import {KeycloakUser} from "../../../../Lib/src/keycloak/KeycloakUser"; -import {CommandUnlockAcceptPacketRes, CommandUnlockPacketReq, CommandUnlockPacketRes, CommandUnlockRefusePacketRes} from "../../../../Lib/src/packets/commands/CommandUnlockPacket"; +import { + CommandUnlockAcceptPacketRes, + CommandUnlockPacketReq, + CommandUnlockPacketRes, + CommandUnlockRefusePacketRes +} from "../../../../Lib/src/packets/commands/CommandUnlockPacket"; import {ReactionCollectorCreationPacket} from "../../../../Lib/src/packets/interaction/ReactionCollectorPacket"; import {DraftBotEmbed} from "../../messages/DraftBotEmbed"; import {DiscordCollectorUtils} from "../../utils/DiscordCollectorUtils"; diff --git a/Discord/src/packetHandlers/handlers/CommandRequirementHandlers.ts b/Discord/src/packetHandlers/handlers/CommandRequirementHandlers.ts index 3261a63d0..274b70a4d 100644 --- a/Discord/src/packetHandlers/handlers/CommandRequirementHandlers.ts +++ b/Discord/src/packetHandlers/handlers/CommandRequirementHandlers.ts @@ -25,7 +25,7 @@ export default class CommandRequirementHandlers { if (interaction.deferred) { interaction.deleteReply(); } - interaction?.followUp({ + await (interaction.replied ? interaction.followUp : interaction.reply)({ embeds: [ new DraftBotEmbed() .setErrorColor()