Skip to content

fix: fallback to empty list if entitlements is not provided #1715

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

Conversation

AstreaTSS
Copy link
Member

@AstreaTSS AstreaTSS commented Jul 3, 2024

Pull Request Type

  • Feature addition
  • Bugfix
  • Documentation update
  • Code refactor
  • Tests improvement
  • CI/CD pipeline enhancement
  • Other: [Replace with a description]

Description

Bizarrely, despite the fact that entitlements are marked as required on the docs, Discord sometimes doesn't provide them, as seen in a help thread. This appears to be an API issue, but this PR still makes entitlements fall back to an empty list if this is the case.

Changes

See description.

Related Issues

Test Scenarios

I'm not 100% sure how this happens - I personally just added a line to pop the entitlements to recreate the situation. Seems like this issue happens consistently now.

Python Compatibility

  • I've ensured my code works on Python 3.10.x
  • I've ensured my code works on Python 3.11.x

Checklist

  • I've run the pre-commit code linter over all edited files
  • I've tested my changes on supported Python versions
  • I've added tests for my code, if applicable
  • I've updated / added documentation, where applicable

@AstreaTSS AstreaTSS changed the title fix: fallback to list if entitlements is not provided fix: fallback to empty list if entitlements is not provided Jul 3, 2024
@silasary silasary merged commit 49ecdf9 into interactions-py:unstable Jul 3, 2024
2 checks passed
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