Nadir Chowdhury
94bbdc154c
update types subpackage with latest docs
4 years ago
James
369951fd80
Typehint audit_logs.py
4 years ago
Rapptz
d78e5d979d
Refactor and type hint invites
4 years ago
Nadir Chowdhury
51df7496db
Add AuditLogChanges.rules_channel/public_updates_channel
4 years ago
Nadir Chowdhury
1765cdffb1
Use Asset for AuditLogChanges and add more entries
4 years ago
z03h
304229071f
Add VoiceChannel.video_quality_mode
4 years ago
Rapptz
40cf397ce6
Permission related fixes for v8
4 years ago
Rapptz
d85805ab6d
First pass at supporting v8 API
4 years ago
Nadir Chowdhury
3e92196a2b
Add typings for audit logs, integrations, and webhooks
4 years ago
Rapptz
99fc950510
Use f-strings in more places that were missed.
4 years ago
Nadir Chowdhury
89456022cf
Add `__all__` to remaining modules
4 years ago
Rapptz
9d39b135f4
Modernize code to use f-strings
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
4 years ago
Nadir Chowdhury
31bbf7434b
Allow AuditLogEntry to be Hashable
4 years ago
Nadir Chowdhury
63ec23bac2
Code optimisations and refactoring via Sourcery
4 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
4 years ago
Rapptz
6071607176
Bump copyright year to 2020
Closes #2510
5 years ago
Josh B
7df5effbb7
Add new audit log entry types. Fix issue with unknown entry types
6 years ago
NCPlayz
3c9bcc2851
Improve documentation
6 years ago
Rapptz
2cd6d771ec
Make __repr__ slightly more detailed and add a few missing ones.
This includes raw events (which didn't have any) and a few other
types that were missing them. Upon review some more useful fields were
added to the repr output which would be more useful during debugging.
6 years ago
Rapptz
6f26a4aad8
Improve performance of value -> enum by about 5x.
6 years ago
Dante Dam
9656a21ebe
Bumped copyright years to 2019.
6 years ago
Rapptz
7f4c57dd5a
Fix overwriting of AuditLogDiff.roles for multiple $add/$remove keys
6 years ago
Rapptz
8b18fa307b
Add support for default notification level in audit logs and Guild.edit
7 years ago
Rapptz
836ae73040
Add support for AuditLogDiff.slowmode_delay.
7 years ago
Rapptz
3d03dbc451
Change internal role storage in Guild to a dict instead of a list.
This adds the following APIs:
* Guild.get_role
This removes the following APIs:
* Guild.role_hierarchy
To compensate for the removed APIs, Guild.roles is now a sorted list
based on hierarchy. The first element will always be the @everyone
role.
This speeds up access at the cost of some memory, theoretically.
7 years ago
BeatButton
a4d1599ce9
Change docstrings to raw-strings
7 years ago
Tobotimus
3112e1c17e
Add intersphinx
7 years ago
Rapptz
13c6a0a17a
Add support for Guild.system_channel
8 years ago
Rapptz
d8360411ea
Fix cases where user_id can be None in audit logs.
8 years ago
Rapptz
1cf50f8054
Fix AuditLogDiff.__iter__ to return an actual iterable.
Fixes #589 .
8 years ago
Rapptz
b13d437bb9
Don't assume the inviter is always there.
8 years ago
Rapptz
6b063deda9
Only set the attribute if it isn't None.
8 years ago
Rapptz
140be3e4c8
Make AuditLogDiff.roles an empty list instead of None.
8 years ago
Rapptz
2b44876955
Fix NameError when making things Object in audit logs.
8 years ago
Rapptz
7916878eb5
Audit log role add and removes are lists, not single item.
Breaking change. role -> roles and it's now a list.
8 years ago
Rapptz
86bfcdd129
Add support for message delete audit log action type.
8 years ago
Twentysix
86b9099f3a
Changed audit_log to audit_logs in documentation
8 years ago
Rapptz
c54a6a927d
Implement audit logs.
8 years ago