Skip to content

Commit b6d6687

Browse files
ebm5025claude
andauthored
Fix EQNotify add-tag option description exceeding Discord 100-char limit (#267)
The add-tag option description introduced in #266 was 108 characters, over Discord's 100-character cap for option descriptions. discord.js validates this only at command-registration time, so it passed tsc/tests but crashed the bot on boot ("ExpectedConstraintError: Invalid string length"). Shortened to 93 characters and noted the limit inline. Claude-Session: https://claude.ai/code/session_01BWXRmPbtEz35wquwFd8Cu7 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 0668f93 commit b6d6687

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/features/eqnotify/commands/add-tag-subcommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ class AddTagSubcommand extends Subcommand {
2323
return super.command.addStringOption((o) =>
2424
o
2525
.setName(Option.Tag)
26+
// Discord limits option descriptions to 100 characters; keep it short.
2627
.setDescription(
27-
"Keyword to match at the start of a batphone word (e.g. 'doze' hits 'Dozekar'). Use 'all' for every batphone."
28+
"Keyword matched at the start of a batphone word (e.g. 'doze' hits Dozekar). 'all' = every BP."
2829
)
2930
.setRequired(true)
3031
);

0 commit comments

Comments
 (0)