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

feat: update docs and support state for custom statuses #1527

Merged
merged 2 commits into from
Aug 15, 2023

Conversation

AstreaTSS
Copy link
Member

@AstreaTSS AstreaTSS commented Aug 10, 2023

Pull Request Type

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

Description

Setting state for presences for bots is now supported, as seen by this changelog, allowing for custom statuses (among other things). Technically, existing interactions.py versions can already use this through a raw dictionary and using the gateway's change_presence, but this PR makes it possible to use more normal means, and also updates the docs to note about it.

Changes

  • Update the docs about Activity.state.
  • Allow setting state through Activity.create.
  • Pass in state in the to_dict method.

Related Issues

#1526

Test Scenarios

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 mentioned this pull request Aug 10, 2023
1 task
@i0bs i0bs merged commit 79ef2cc into interactions-py:unstable Aug 15, 2023
1 check passed
@AstreaTSS AstreaTSS deleted the custom-status branch August 16, 2023 19:44
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.

3 participants