You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's been running fine for a year up until today. Now, when I type the /ban command, I fill in the user, then the autocomplete option that appears ahead of the reason field fails to load.
What's odd is this is entirely unrelated to that field. In devtools I see:
{
"message": "Invalid Form Body",
"code": 50035,
"errors": {
"data": {
"options": {
"0": {
"options": {
"2": {
"value": {
"_errors": [
{
"code": "BASE_TYPE_CHOICES",
"message": "Value must be one of {'DM spam/scam', 'Exposing PII', 'Other flagrant violation of Discord ToS', 'Extreme toxicity', 'Illegal content', 'Server spam/scam'}."
}
]
}
}
}
}
}
}
}
}
Commenting out all the slash options immediately returns functionality to normal. There are no error logs whatsoever from the bot during any of this.
Reproduction
Create a slash command
Have multiple fields
Have an autocompleting field anywhere in the command builder
Have one of the fields be one that is required with choices
Package
discordx
Relevant log output
{
"message": "Invalid Form Body",
"code": 50035,
"errors": {
"data": {
"options": {
"0": {
"options": {
"2": {
"value": {
"_errors": [
{
"code": "BASE_TYPE_CHOICES",
"message": "Value must be one of {'DM spam/scam', 'Exposing PII', 'Other flagrant violation of Discord ToS', 'Extreme toxicity', 'Illegal content', 'Server spam/scam'}."
}
]
}
}
}
}
}
}
}
}
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
What happened?
I have a bot I use for moderation. In the
/ban
command, there is a parameter for the ban reason. That parameter hasSlashChoice
options like so:It's been running fine for a year up until today. Now, when I type the
/ban
command, I fill in the user, then the autocomplete option that appears ahead of thereason
field fails to load.What's odd is this is entirely unrelated to that field. In devtools I see:
Commenting out all the slash options immediately returns functionality to normal. There are no error logs whatsoever from the bot during any of this.
Reproduction
Package
discordx
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: