-
-
Notifications
You must be signed in to change notification settings - Fork 480
feat: add on_raw_member_update event #3012
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
base: master
Are you sure you want to change the base?
Conversation
|
Thanks for opening this pull request! This pull request can be checked-out with: git fetch origin pull/3012/head:pr-3012
git checkout pr-3012This pull request can be installed with: pip install git+https://github.com/Pycord-Development/pycord@refs/pull/3012/head |
385d39a to
e13a20a
Compare
|
|
||
| self.premium_since = utils.parse_time(data.get("premium_since")) | ||
| self._roles = utils.SnowflakeList(map(int, data["roles"])) | ||
| self._roles = utils.SnowflakeList(map(int, data["roles"])) # type: ignore # the API is the same |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# the API is the same
What do you mean ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type error is
Cannot assign to attribute "_roles" for class "Member*"
"array[int]" is not assignable to "SnowflakeList"SnowflakeList is a subclass of array.array, so same type.
Co-authored-by: Paillat <[email protected]> Signed-off-by: Soheab <[email protected]>
Co-authored-by: DA344 <[email protected]> Signed-off-by: Soheab <[email protected]>
…cord into feat/onrawmemberupdate
Summary
This PR adds a new event called
on_raw_member_update. This event is dispatched regardless of whether the member is cached. Handy for bots with chunking disabled and other reasons.Fixes #3001
Information
examples, ...).
Checklist
type: ignorecomments were used, a comment is also left explaining why.