From 70ff143c36955c7918a151deb4cc23ada671b5ea Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Fri, 22 Dec 2023 17:57:55 -0500 Subject: [PATCH] fix not being able to delete own message --- src/components/contextMenus/MessageContextMenu.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/contextMenus/MessageContextMenu.tsx b/src/components/contextMenus/MessageContextMenu.tsx index 7c0f5dd..4c667db 100644 --- a/src/components/contextMenus/MessageContextMenu.tsx +++ b/src/components/contextMenus/MessageContextMenu.tsx @@ -38,11 +38,12 @@ function MessageContextMenu({ message }: MenuProps) { Copy Raw Text - {message.channel.hasPermission("MANAGE_MESSAGES") && message instanceof Message && ( - - Delete Message - - )} + {(message.channel.hasPermission("MANAGE_MESSAGES") || message.author.id === app.account?.id) && + message instanceof Message && ( + + Delete Message + + )}