-
-
Notifications
You must be signed in to change notification settings - Fork 467
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: Add data attribute to all raw event payloads #2023
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2023 +/- ##
==========================================
- Coverage 33.29% 33.28% -0.02%
==========================================
Files 97 97
Lines 18940 18946 +6
==========================================
Hits 6307 6307
- Misses 12633 12639 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Signed-off-by: Lala Sabathil <[email protected]>
Signed-off-by: Lala Sabathil <[email protected]>
Signed-off-by: Lala Sabathil <[email protected]>
Signed-off-by: Lala Sabathil <[email protected]>
Summary
Raw events are useful for working with lower level data without relying on cache, however in many cases we still do our own processing through pycord models or try to get objects from cache. The
data
attribute will let users access the raw data from Discord for them to inspect themselves, and would also be useful to access attributes from the API that haven't been implemented in the library yet.This attribute was already available in some raw events, so now it has been expanded to all.
Information
examples, ...).
Checklist
type: ignore
comments were used, a comment is also left explaining why.