3
0
Fork 0
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:
metal 2023-03-11 23:58:12 +00:00 committed by GitHub
parent 1dca8c4447
commit cd68a6083c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 37 additions and 35 deletions

View file

@ -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;
},