Skip to content

Commit 2bcc07e

Browse files
committed
fix missing name field from non-slash command CCs
1 parent 10ace62 commit 2bcc07e

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

customcommands/assets/customcommands-editcmd.html

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -323,17 +323,7 @@ <h2 class="card-title">
323323
{{if and (not .IsGuildPremium) .SlashCommandLimitReached}}
324324
{{template "cp_premium_nudge" (dict "IsGuildPremium" .IsGuildPremium "Title" "You've reached the free limit of 3 slash commands. Premium servers can register up to 10.")}}
325325
{{end}}
326-
<hr>
327-
<div class="row">
328-
<div class="col-lg-12">
329-
<div class="form-group">
330-
<label for="name">Name (<span id="name-length">{{len .CC.Name.String}}</span>/100) </label>
331-
<input type="text" class="form-control" id="name" name="name" placeholder="Enter a name" value="{{if .CC.Name.Valid}}{{.CC.Name.String}}{{end}}">
332-
<small>An optional name that can be used to identify the command.</small>
333-
</div>
334-
</div>
335-
</div>
336-
<div class="row mt-2">
326+
<div class="row">
337327
<div class="col-lg-12">
338328
<div class="form-group">
339329
<label for="slash_command_description">Description (<span id="slash-description-length">{{len (call .GetCCSlashDescription .CC)}}</span>/100)</label>
@@ -584,6 +574,13 @@ <h2 class="card-title">
584574
</div>
585575
<hr>
586576
<div class="row mt-3">
577+
<div class="col-lg-4">
578+
<div class="form-group">
579+
<label for="name">Name (<span id="name-length">{{len .CC.Name.String}}</span>/100) </label>
580+
<input type="text" class="form-control" id="name" name="name" placeholder="Enter a name" value="{{if .CC.Name.Valid}}{{.CC.Name.String}}{{end}}">
581+
<small>An optional name that can be used to identify the command.</small>
582+
</div>
583+
</div>
587584
<div class="col-lg-4">
588585
<div class="form-group">
589586
<label for="is_enabled"> Command Enabled?</label>

0 commit comments

Comments
 (0)