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

Fixed type mismatch in sync_commands #925

Merged
merged 3 commits into from Feb 5, 2022

Conversation

faluhub
Copy link
Contributor

@faluhub faluhub commented Feb 4, 2022

Summary

Previously, the 'type' and 'guild_id' variables couldn't match because they weren't of the same type. I've now changed the types so they can compare with the correct types.

Checklist

  • 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
  • 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, ...)

Previously, the 'type' and 'guild_id' variables couldn't match because they weren't of the same type. I've now changed the types so they can compare with the correct types.
@Lulalaby Lulalaby added this to In progress in v2.0 Feb 5, 2022
@Lulalaby Lulalaby added this to the v2.0 milestone Feb 5, 2022
discord/bot.py Outdated Show resolved Hide resolved
@Lulalaby Lulalaby merged commit 4e8b396 into Pycord-Development:master Feb 5, 2022
v2.0 automation moved this from In progress to Done Feb 5, 2022
@Dorukyum
Copy link
Member

Dorukyum commented Feb 5, 2022

It seems we kept the str conversion, I though the last commit reverted that when I took a glance :pain:

@faluhub
Copy link
Contributor Author

faluhub commented Feb 5, 2022

It seems we kept the str conversion, I though the last commit reverted that when I took a glance :pain:

sorry lol

@faluhub faluhub deleted the patch-1 branch February 5, 2022 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
v2.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants