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
The description_localizations field, which allows providing localized descriptions for slash commands, is currently not supported in several methods of the Eris library. This causes issues when attempting to register or edit slash commands with localized descriptions, as the field is simply not passed to the API.
Affected Methods
The following methods are missing support for the description_localizations field:
createCommand
createGuildCommand
editCommand
editGuildCommand
bulkEditCommands
bulkEditGuildCommands
Proposed Solution
To fix this issue, the following code snippet needs to be added to each of the affected methods:
This code ensures that the descriptionLocalizations property is properly mapped to the description_localizations field expected by the Discord API.
Impact
Adding this support will enable developers to register and edit slash commands with localized descriptions, improving the library's compliance with Discord's API and making it more useful for multilingual applications.
The text was updated successfully, but these errors were encountered:
The
description_localizations
field, which allows providing localized descriptions for slash commands, is currently not supported in several methods of the Eris library. This causes issues when attempting to register or edit slash commands with localized descriptions, as the field is simply not passed to the API.Affected Methods
The following methods are missing support for the
description_localizations
field:createCommand
createGuildCommand
editCommand
editGuildCommand
bulkEditCommands
bulkEditGuildCommands
Proposed Solution
To fix this issue, the following code snippet needs to be added to each of the affected methods:
This code ensures that the
descriptionLocalizations
property is properly mapped to thedescription_localizations
field expected by the Discord API.Impact
Adding this support will enable developers to register and edit slash commands with localized descriptions, improving the library's compliance with Discord's API and making it more useful for multilingual applications.
The text was updated successfully, but these errors were encountered: