Skip to content

Commit

Permalink
fix non ephemeral message
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed Dec 22, 2023
1 parent b6b2ef8 commit e78e883
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/services/discord/modules/commands/GetStickerUrl.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// import { ApplicationCommandType, CommandContext, SlashCommand, SlashCreator } from "slash-create";
// import { DiscordBot } from "../..";
// import { EphemeralResponse } from ".";
import { EphemeralResponse } from ".";
import { MenuCommand } from "@/extensions/discord";
import Discord from "discord.js";

Expand All @@ -11,7 +9,8 @@ export const MenuGetStickerUrlCommand: MenuCommand = {
},
execute: async (ctx: Discord.MessageContextMenuCommandInteraction) => {
if (ctx.targetMessage.stickers.size === 0) {
await ctx.reply("no stickers found in this message...");
await ctx.reply(EphemeralResponse("no stickers found in this message..."));
return;
}
const stickers = ctx.targetMessage.stickers;
await ctx.reply({
Expand Down

0 comments on commit e78e883

Please sign in to comment.