aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/messageActions.ts
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-09-27 14:34:57 +0200
committerVendicated <vendicated@riseup.net>2022-09-27 14:34:57 +0200
commit6398dd25d20e6bc3e02425b709233066baf64e0c (patch)
tree3502593fdb4912c678ce6e840726114ccdb8c218 /src/plugins/messageActions.ts
parentd0940a8b194805173dae029d0fe284974ffecc7a (diff)
downloadVencord-6398dd25d20e6bc3e02425b709233066baf64e0c.tar.gz
Vencord-6398dd25d20e6bc3e02425b709233066baf64e0c.tar.bz2
Vencord-6398dd25d20e6bc3e02425b709233066baf64e0c.zip
Unbrick Vencord - Pt 1
Diffstat (limited to 'src/plugins/messageActions.ts')
-rw-r--r--src/plugins/messageActions.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/messageActions.ts b/src/plugins/messageActions.ts
index 42f2e2f..569d3a9 100644
--- a/src/plugins/messageActions.ts
+++ b/src/plugins/messageActions.ts
@@ -16,7 +16,7 @@ export default definePlugin({
start() {
const { deleteMessage, startEditMessage } = findByProps("deleteMessage");
const { can } = findByProps("can", "initialize");
- const { Permissions: { MANAGE_MESSAGES } } = find(m => m.Permissions?.MANAGE_MESSAGES);
+ const { MANAGE_MESSAGES } = find(m => typeof m.MANAGE_MESSAGES === "bigint");
const { isEditing } = findByProps("isEditing");
document.addEventListener("keydown", keydown);