FabianBartl / HARIBOT

A discord bot specialized for the "MINT TANK Community" discord server. Bot invite below:
https://discord.com/oauth2/authorize?client_id=1024235031037759500&permissions=8&scope=bot
MIT License
2 stars 3 forks source link

error at registering slash command `/reaction-role` #21

Closed FabianBartl closed 1 year ago

FabianBartl commented 2 years ago

Logfile extract:

2022-09-30 01:04:38,673 |    DEBUG | Fetched global application command data.
2022-09-30 01:04:38,673 |    DEBUG | Running sync for global
2022-09-30 01:04:38,673 |    DEBUG | Syncing commands to None
2022-09-30 01:04:38,674 |    DEBUG | nextcord.ConnectionState: Command with signature ('ping', 1, None) associated with added command.
2022-09-30 01:04:38,674 |    DEBUG | nextcord.ConnectionState: Command with signature ('help', 1, None) associated with added command.
2022-09-30 01:04:38,674 |    DEBUG | nextcord.ConnectionState: Command with signature ('log', 1, None) associated with added command.
2022-09-30 01:04:38,674 |    DEBUG | nextcord.ConnectionState: Command with signature ('bot-info', 1, None) associated with added command.
2022-09-30 01:04:38,674 |    DEBUG | nextcord.ConnectionState: Command with signature ('member-info', 1, None) associated with added command.
2022-09-30 01:04:38,675 |    DEBUG | Option amount between commands not equal, not valid payload.
2022-09-30 01:04:38,675 |    DEBUG | nextcord.ConnectionState: Command with signature ('reaction-role', 1, None) found but failed deep check, updating.
2022-09-30 01:04:38,675 |     INFO | nextcord.ConnectionState: Registering command with signature ('reaction-role', 1, None)
2022-09-30 01:04:38,822 |    DEBUG | POST https://discord.com/api/v10/applications/1024235031037759500/commands with {"type":1,"name":"reaction-role","description":"Manage reaction role.","name_localizations":null,"description_localizations":null,"dm_permission":true,"options":[{"type":4,"name":"action","description":"No description provided.","name_localizations":null,"description_localizations":null,"required":true,"choices":[{"name":"add","value":0,"name_localizations":null},{"name":"list","value":1,"name_localizations":null},{"name":"remove","value":2,"name_localizations":null},{"name":"clear","value":3,"name_localizations":null}]},{"type":4,"name":"messageID","description":"No description provided.","name_localizations":null,"description_localizations":null,"required":true},{"type":4,"name":"emoji","description":"No description provided.","name_localizations":null,"description_localizations":null,"required":true},{"type":8,"name":"role","description":"No description provided.","name_localizations":null,"description_localizations":null,"required":true}]} has returned 400
2022-09-30 01:04:38,823 |    ERROR | Error registering command SlashApplicationCommand reaction-role <function sc_reactionRole at 0x000001FD5D56D280>: 400 Bad Request (error code: 50035): Invalid Form Body
In options.1.name: Command name is invalid
2022-09-30 01:04:38,823 |    ERROR | 400 Bad Request (error code: 50035): Invalid Form Body
In options.1.name: Command name is invalid
2022-09-30 01:04:38,823 |     INFO | bot is ready