mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-11 21:17:19 +00:00
Merge branch 'ZeppelinBot:master' into chore(basic-config)-rename-plugin
This commit is contained in:
commit
9578668636
591 changed files with 25054 additions and 8203 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 && 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,8 +309,9 @@
|
|||
},
|
||||
hasUsageInfo() {
|
||||
if (!this.data) return true;
|
||||
if (this.data.commands.length) return true;
|
||||
if (this.data.info.usageGuide) 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