Update MessageUtilities.plugin.js

This commit is contained in:
Mirco Wittrien 2024-01-21 02:27:43 +01:00 committed by GitHub
parent c730682e8e
commit 45dfa62a83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* @name MessageUtilities
* @author DevilBro
* @authorId 278543574059057154
* @version 1.9.7
* @version 1.9.8
* @description Adds several Quick Actions for Messages (Delete, Edit, Pin, etc.)
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -366,7 +366,7 @@ module.exports = (_ => {
doDelete (execute, {messageDiv, message}, action, event) {
let deleteLink = messageDiv.parentElement.querySelector(BDFDB.dotCNS.messagelocalbotoperations + BDFDB.dotCN.anchor);
if (deleteLink) deleteLink.click();
else if (BDFDB.DiscordConstants.MessageTypeGroups.DELETABLE.has(message.type)) {
else if (!BDFDB.DiscordConstants.MessageTypeGroups.UNDELETABLE.has(message.type)) {
let channel = BDFDB.LibraryStores.ChannelStore.getChannel(message.channel_id);
if (channel && (BDFDB.UserUtils.can("MANAGE_MESSAGES") || message.author.id == BDFDB.UserUtils.me.id)) {
if (execute) {