Fix Run Buttons
This commit is contained in:
parent
83958f2135
commit
90c536e96c
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue