Skip to content

Commit

Permalink
check for webhook instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed Oct 5, 2024
1 parent 98a72b7 commit 7f43a57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const MenuRemoveHighlightMessageCommand: MenuCommand = {
},
execute: async (ctx: Discord.MessageContextMenuCommandInteraction, bot) => {
if (
ctx.targetMessage.author.id !== ctx.client.user.id ||
!ctx.targetMessage.webhookId ||
(ctx.targetMessage.channel as Discord.GuildChannel).parentId !==
bot.config.categories.highlights
) {
Expand Down

0 comments on commit 7f43a57

Please sign in to comment.