Skip to content

fix: command syncing edge cases #2797

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

Merged
merged 6 commits into from
May 31, 2025

Conversation

NeloBlivion
Copy link
Member

@NeloBlivion NeloBlivion commented May 31, 2025

Summary

Fixes some edge cases in desynced commands:

  • Discord always returns nsfw in command payloads, and as such it should not be None by default.
  • Checks if name_localizations and description_localizations are falsey

Information

  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed).
  • This PR is not a code change (e.g. documentation, README, typehinting,
    examples, ...).

Checklist

  • I have searched the open pull requests for duplicates.
  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • If type: ignore comments were used, a comment is also left explaining why.
  • I have updated the changelog to include these changes.

@NeloBlivion NeloBlivion changed the title fix: change the default value of ApplicationCommand.nsfw to False fix: command syncing edge cases May 31, 2025
@Lulalaby Lulalaby merged commit e391c82 into Pycord-Development:master May 31, 2025
28 checks passed
@NeloBlivion
Copy link
Member Author

tbh i was meant to change this to draft because i found several more annoyances that seemingly were never tested but eh it hurts to read through this code...

@Lulalaby
Copy link
Member

Oop

plun1331 pushed a commit to Pycord-Test/pycord that referenced this pull request Jun 1, 2025
* fix: Role Edit TypeHint (Pycord-Development#2795)

Signed-off-by: Lumouille <[email protected]>

* fix: command syncing edge cases (Pycord-Development#2797)

* change default nsfw to false

* cl

* localizations

* :=

* style(pre-commit): auto fixes from pre-commit.com hooks

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* Format code

---------

Signed-off-by: Lumouille <[email protected]>
Co-authored-by: Lumouille <[email protected]>
Co-authored-by: UK <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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