Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support with_localizations query string for Get Application Commands endpoints #1195

Closed
EliasStar opened this issue Jun 7, 2022 · 0 comments · Fixed by #1196
Closed

Support with_localizations query string for Get Application Commands endpoints #1195

EliasStar opened this issue Jun 7, 2022 · 0 comments · Fixed by #1196

Comments

@EliasStar
Copy link
Contributor

The endpoints "Get Global Application Commands" and "Get Guild Application Commands", which are implemented in (*Session).ApplicationCommands(string, string), don't return name_localizations and description_localizations by default, as described in the Discord Docs. Instead, those endpoints supply name_localized and description_localized, which only contain one localization based on the request. The full name_localizations and description_localizations can only be obtained by supplying with_localizations=true in the query string.

As far as I know this is not currently possible with DiscordGo. Furthermore name_localized and description_localized aren't accessible with the current ApplicationCommand struct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant