Skip to content

Commit

Permalink
some slight fixes, nothing too shady "#2697"
Browse files Browse the repository at this point in the history
I don't think there anything wrong, at least not from what I tested
  • Loading branch information
romain22222 committed Dec 9, 2024
1 parent 079e553 commit 73cdd72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Discord/src/commands/player/UnlockCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 73cdd72

Please sign in to comment.