Help: compact inline columns, wide instead of long, with a link to the docs

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
FernandoJVideiraandClaude Sonnet 5.5 committed 2026-10-23 11:38:45 +01:00
1 parent 85bd89a3f6
commit 694d262c8c
2 files changed
+62 -133

No files matched your search

+17
View File
@@ -38,3 +38,20 @@ func TestHelpFitsDiscordsLimits(t *testing.T) {
t.Errorf("%d fields shown of %d", seen, len(fields()))
}
}
// The help is meant to be wide and short: inline fields, so Discord puts
// three side by side, and it should fit in one message.
func TestHelpIsCompactAndInline(t *testing.T) {
if n := len(embeds(&discordgo.MessageEmbedAuthor{Name: "Velox Bot"})); n != 1 {
t.Errorf("the help should fit in one message, it takes %d", n)
}
inline := 0
for _, f := range fields() {
if f.Inline {
inline++
}
}
if inline < len(fields())-2 {
t.Errorf("only %d of %d fields are inline", inline, len(fields()))
}
}