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

[Fix]: Slash Command Localizations lost after AddCommandsToGuildAsync and deleteMissing = false #2758

Merged
merged 1 commit into from
Nov 18, 2023

Conversation

MaxEtMoritz
Copy link
Contributor

Description

Fetch localizations when adding commands with deleteMissing = false to prevent them getting lost.

Changes

  • add missing withLocalizations parameter with value true to the calls to RestClient.GetGlobal/GuildApplicationCommands calls.

Related Issues

fetch localizations when adding commands with `deleteMissing` = `false`

fixes #2757
@DeclanFrampton
Copy link
Contributor

DeclanFrampton commented Aug 14, 2023

I would suggest introducing optional localization parameter's rather than forcing true on the localization params.

@MaxEtMoritz
Copy link
Contributor Author

I would suggest introducing optional localization parameter's rather than forcing true on the localization params.

Yeah, could do that, but it is not clear for me what the use case of the current behavior is.
Why would someone want to add Slash commands without deleting the existing ones, but discard all existing localizations in this operation?

@quinchs quinchs merged commit 8d5022a into discord-net:dev Nov 18, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Slash Command Localizations lost after AddCommandsToGuildAsync and deleteMissing = false
4 participants