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

Add application command localization support. #245

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

expeehaa
Copy link

@expeehaa expeehaa commented Nov 26, 2023

Summary

This PR adds support for registering and editing name and description localizations of application commands and their options. I took a slightly different approach than in #190, because I don’t like the additional builder.


Added

  • Support for registering and editing the name_localizations and description_localizations properties of application commands and their options
  • Example usage of application command localizations in the slash commands example
  • Support for setting with_localizations when calling Discordrb::Bot#get_application_commands.

@expeehaa expeehaa marked this pull request as ready for review November 27, 2023 23:27
Copy link
Contributor

@Droid00000 Droid00000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Copy link
Contributor

@Droid00000 Droid00000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, sorry, I forgot to mention, but could you please include the with_localizations field on #get_application_commands as well, if it's not too much trouble 😅

@expeehaa
Copy link
Author

I’ll try to do that and rebase the branch soon.

@expeehaa expeehaa force-pushed the add_application_command_localization_support branch 2 times, most recently from 2840504 to f90cb1f Compare October 15, 2024 18:48
Copy link
Contributor

@Droid00000 Droid00000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@expeehaa expeehaa force-pushed the add_application_command_localization_support branch 3 times, most recently from 21eef87 to 67cf6a9 Compare October 19, 2024 16:27
@expeehaa expeehaa force-pushed the add_application_command_localization_support branch from 67cf6a9 to 2c990aa Compare November 1, 2024 23:51
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 this pull request may close these issues.

2 participants