3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-25 18:25:03 +00:00

fix(dashboard): fix error when there are no message and/or slash commands in a plugin

This commit is contained in:
Dragory 2023-04-01 13:43:51 +03:00
parent 04ae4eeb14
commit 6636092410
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -309,9 +309,9 @@
}, },
hasUsageInfo() { hasUsageInfo() {
if (!this.data) return true; if (!this.data) return true;
if (this.data.messageCommands.length) return true; if (this.data.messageCommands?.length) return true;
if (this.data.slashCommands.length) return true; if (this.data.slashCommands?.length) return true;
if (this.data.info.usageGuide) return true; if (this.data.info?.usageGuide) return true;
return false; return false;
}, },
}), }),