Register ChatInputCommand

when i set the guildIds option to ['1076805694285680750'] it returns an error:
ExpectedConstraintError > s.string.regex
Invalid string format

Expected: expected /^[\p{Ll}\p{Lm}\p{Lo}\p{N}\p{sc=Devanagari}\p{sc=Thai}_-]+$/u.test(expected) to be true

Received:
| 'guildId'
ExpectedConstraintError > s.string.regex
Invalid string format

Expected: expected /^[\p{Ll}\p{Lm}\p{Lo}\p{N}\p{sc=Devanagari}\p{sc=Thai}_-]+$/u.test(expected) to be true

Received:
| 'guildId'
2 Replies
Favna
Favna2y ago
guildIds is not guildId. Note the plural. This error is because you added a string option named guildId which is invalid because option names have to be all lower case.
а к а й с
а к а й сOP2y ago
oh
Want results from more Discord servers?
Add your server