Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

fix: fix usage of hybrid cmds with no localized names #639

Merged
merged 1 commit into from
Sep 10, 2022

Conversation

AstreaTSS
Copy link
Contributor

What type of pull request is this?

  • Non-breaking code change
  • Breaking code change
  • Documentation change/addition
  • Tests change

Description

Seems like Polls fixed Discord localization syncing by making to_locale_dict return None if the there's no localization. This screwed over assumptions hybrid commands made, so this PR ensures that there will always be a dict to work with.

Changes

  • Make every usage of to_locale_dict use to_locale_dict() or {} for hybrid commands. This requires some ugly parenthesis, but otherwise works fine.

Checklist

  • I've formatted my code with Black
  • I've ensured my code works on Python 3.10.x
  • I've tested my code

@LordOfPolls
Copy link
Member

Polls did this because Discord was stupid - apologies this broke hybrid. Merging

@LordOfPolls LordOfPolls merged commit 32ef807 into NAFTeam:dev Sep 10, 2022
silasary pushed a commit that referenced this pull request Sep 13, 2022
* fix: fix usage of hybrid cmds with no localized names (#639)

* fix: make naff always use the correct logger by converting const.logger into a function

Co-authored-by: Astrea <[email protected]>
LordOfPolls pushed a commit that referenced this pull request Sep 14, 2022
* fix: fix usage of hybrid cmds with no localized names (#639)

* fix: make naff always use the correct logger by converting const.logger into a function

Co-authored-by: Astrea <[email protected]>
@AstreaTSS AstreaTSS deleted the hybrid-cmd-fix branch November 24, 2022 19:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants