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:
parent
04ae4eeb14
commit
6636092410
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue