Fix Run Buttons

This commit is contained in:
thororen1234 2025-10-29 16:14:10 -04:00
parent 83958f2135
commit 90c536e96c
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -342,7 +342,7 @@ export default definePlugin({
);
}
if (isSupportChannel(props.channel.id) && PermissionStore.can(PermissionsBits.SEND_MESSAGES, props.channel)) {
if (isSupportChannel(props.channel.id) && PermissionStore.can(PermissionsBits.SEND_MESSAGES, props.channel) && equicordSupport) {
if (props.message.content.includes("/equicord-debug") || props.message.content.includes("/equicord-plugins")) {
buttons.push(
<Button

View file

@ -129,7 +129,7 @@ export function isEquicordGuild(id: string | null | undefined, isGuildId: boolea
}
export function isSupportChannel(channelId: string | null | undefined): boolean {
if (channelId) return false;
if (!channelId) return false;
return channelId === SUPPORT_CHANNEL_ID;
}