From ecf6af5884981236ce8be4573e28629962edacc3 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Mon, 6 May 2024 05:07:46 -0300 Subject: [PATCH] FakeNitro: Make disableEmbedPermissionCheck setting not private --- src/plugins/fakeNitro/index.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/plugins/fakeNitro/index.tsx b/src/plugins/fakeNitro/index.tsx index 90ce10f6..ad7394dc 100644 --- a/src/plugins/fakeNitro/index.tsx +++ b/src/plugins/fakeNitro/index.tsx @@ -166,10 +166,13 @@ const settings = definePluginSettings({ description: "What text the hyperlink should use. {{NAME}} will be replaced with the emoji/sticker name.", type: OptionType.STRING, default: "{{NAME}}" + }, + disableEmbedPermissionCheck: { + description: "Whether to disable the embed permission check when sending fake emojis and stickers", + type: OptionType.BOOLEAN, + default: false } -}).withPrivateSettings<{ - disableEmbedPermissionCheck: boolean; -}>(); +}); function hasPermission(channelId: string, permission: bigint) { const channel = ChannelStore.getChannel(channelId);