Make vencord-debug usable everywhere if user is pluginDev

This commit is contained in:
Nuckyz 2024-05-30 18:32:09 -03:00
parent 05a40445c8
commit 2b565fed25
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -65,7 +65,7 @@ export default definePlugin({
commands: [{
name: "vencord-debug",
description: "Send Vencord Debug info",
predicate: ctx => AllowedChannelIds.includes(ctx.channel.id),
predicate: ctx => isPluginDev(UserStore.getCurrentUser()?.id) || AllowedChannelIds.includes(ctx.channel.id),
async execute() {
const { RELEASE_CHANNEL } = window.GLOBAL_ENV;