diff options
author | Vendicated <vendicated@riseup.net> | 2022-09-27 14:34:57 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-09-27 14:34:57 +0200 |
commit | 6398dd25d20e6bc3e02425b709233066baf64e0c (patch) | |
tree | 3502593fdb4912c678ce6e840726114ccdb8c218 /src/plugins/messageActions.ts | |
parent | d0940a8b194805173dae029d0fe284974ffecc7a (diff) | |
download | Vencord-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.ts | 2 |
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); |