aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-01-25 04:08:37 +0100
committerVendicated <vendicated@riseup.net>2023-01-25 04:08:37 +0100
commit41226f0358a7605e2fb668e7b6df30f658c79289 (patch)
tree328507d2dc599da1b56eb4d4178716be88ba235a
parent5d3148cf50f315a303e8e7f8ac2f0861b0279eb1 (diff)
downloadVencord-41226f0358a7605e2fb668e7b6df30f658c79289.tar.gz
Vencord-41226f0358a7605e2fb668e7b6df30f658c79289.tar.bz2
Vencord-41226f0358a7605e2fb668e7b6df30f658c79289.zip
Fix ShowHiddenChannels
-rw-r--r--src/plugins/showHiddenChannels.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/showHiddenChannels.tsx b/src/plugins/showHiddenChannels.tsx
index 91e4c3b..c969b30 100644
--- a/src/plugins/showHiddenChannels.tsx
+++ b/src/plugins/showHiddenChannels.tsx
@@ -24,12 +24,12 @@ import { Devs } from "@utils/constants";
import { ModalContent, ModalFooter, ModalHeader, ModalRoot, ModalSize, openModal } from "@utils/modal";
import { proxyLazy } from "@utils/proxyLazy";
import definePlugin, { OptionType } from "@utils/types";
-import { findByPropsLazy } from "@webpack";
+import { findByPropsLazy, findLazy } from "@webpack";
import { Button, ChannelStore, moment, Parser, PermissionStore, SnowflakeUtils, Text, Timestamp, Tooltip } from "@webpack/common";
import { Channel } from "discord-types/general";
const ChannelListClasses = findByPropsLazy("channelName", "subtitle", "modeMuted", "iconContainer");
-const Permissions = findByPropsLazy("VIEW_CHANNEL", "ADMINISTRATOR");
+const Permissions = findLazy(m => typeof m.VIEW_CHANNEL === "bigint");
const ChannelTypes = findByPropsLazy("GUILD_TEXT", "GUILD_FORUM");
const ChannelTypesToChannelName = proxyLazy(() => ({