1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 09:56:24 +00:00

FakeNitro: Make disableEmbedPermissionCheck setting not private

This commit is contained in:
Nuckyz 2024-05-06 05:07:46 -03:00 committed by Luna
parent 7adb363c82
commit 16caeeb7ed

View file

@ -166,10 +166,13 @@ const settings = definePluginSettings({
description: "What text the hyperlink should use. {{NAME}} will be replaced with the emoji/sticker name.", description: "What text the hyperlink should use. {{NAME}} will be replaced with the emoji/sticker name.",
type: OptionType.STRING, type: OptionType.STRING,
default: "{{NAME}}" 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) { function hasPermission(channelId: string, permission: bigint) {
const channel = ChannelStore.getChannel(channelId); const channel = ChannelStore.getChannel(channelId);