mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-29 12:15:03 +00:00
knub commands => messageCommands
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
1dca8c4447
commit
cd68a6083c
26 changed files with 37 additions and 35 deletions
|
@ -45,10 +45,10 @@
|
|||
<MarkdownBlock :content="data.info.usageGuide" class="content" />
|
||||
</div>
|
||||
|
||||
<!-- Command list -->
|
||||
<div v-if="data.commands.length">
|
||||
<h3 id="commands" class="text-2xl">Commands</h3>
|
||||
<div v-for="command in data.commands"
|
||||
<!-- Message Command list -->
|
||||
<div v-if="data.messageCommands.length">
|
||||
<h3 id="commands" class="text-2xl">Message Commands</h3>
|
||||
<div v-for="command in data.messageCommands"
|
||||
class="command mb-4"
|
||||
v-bind:ref="getCommandSlug(command)" v-bind:class="{target: targetCommandId === getCommandSlug(command)}">
|
||||
<h4 class="text-xl font-semibold mb-0">
|
||||
|
@ -309,7 +309,8 @@
|
|||
},
|
||||
hasUsageInfo() {
|
||||
if (!this.data) return true;
|
||||
if (this.data.commands.length) return true;
|
||||
if (this.data.messageCommands.length) return true;
|
||||
if (this.data.slashCommands.length) return true;
|
||||
if (this.data.info.usageGuide) return true;
|
||||
return false;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue