Rapptz
8953938a53
Update Pyright to v1.1.394
2 months ago
Rapptz
8d17aa23c9
Remove @ prefix from usernames
Discord seemed to have backtracked on this display
2 years ago
Rapptz
9ebc13e160
Only use @ prefix in __str__ if the user is migrated
2 years ago
Rapptz
df01db3490
Initial support for pomelo migration
2 years ago
Rapptz
c495762aa6
Fix Widget.members type docstring
2 years ago
Jonah Lawrence
d7b6a2ad12
Fix usage of single backticks to links and code-blocks
2 years ago
James Hilton-Balfe
40986f9279
Fix overlapping or incorrect slots found by slotscheck
3 years ago
Kellen
0f18d93e47
Remove unused imports
3 years ago
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <[email protected] >
Co-authored-by: Josh <[email protected] >
3 years ago
metro
124a3ee42a
Add Widget.presence_count attribute and fix Widget types
3 years ago
Sebastian Law
483ffeacd4
Inject state into PartialEmoji in Activity
3 years ago
Rapptz
4c8b1f9abd
Remove unused imports
3 years ago
Nadir Chowdhury
3c6279b947
Implement Guild Scheduled Events
3 years ago
Josh
3ce00abeae
Fix some type-check errors
3 years ago
Rapptz
88b520b5ab
Reformat code using black
Segments where readability was hampered were fixed by appropriate
format skipping directives. New code should hopefully be black
compatible. The moment they remove the -S option is probably the moment
I stop using black though.
3 years ago
Nadir Chowdhury
757cfad38f
Type up **kwargs of various methods
4 years ago
Josh
8b2241916a
Typehint Widget
4 years ago
Steve C
86f10f6dd6
Add missing reprs to some objects
These are WidgetMember, BaseUser, and DeletedReferencedMessage
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
63ec23bac2
Code optimisations and refactoring via Sourcery
4 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
4 years ago
Tarek
7f17dc79a6
Remove namedtuples to better future guard the library
5 years ago
Anurag Singh
12e31bb933
Fix KeyError on Member Channels not in JSON
5 years ago
Rapptz
66c6be50d8
Prepare for the discord.com domain rename
5 years ago
Rapptz
6071607176
Bump copyright year to 2020
Closes #2510
5 years ago
Rapptz
42a084028c
Expose _ActivityTag as BaseActivity to easily refer to.
5 years ago
Rapptz
6847f13198
Document that widget members may be incomplete.
See https://github.com/discordapp/discord-api-docs/issues/1287
5 years ago
NCPlayz
3c9bcc2851
Improve documentation
6 years ago
Rapptz
e3631ade4c
Fix attribute error in Widget.__repr__
6 years ago
NCPlayz
be227ebcf0
Redesign asset retrieval in the library.
Most assets now return a new class named `Asset`. This allows for the
assets to be consistently saved via a `save` method instead of special
casing for `Attachment`.
`AppInfo` is no longer a namedtuple it is a fully documented dataclass,
as well as having the state attached to it.
Fixes #1997
6 years ago
Rapptz
2ce42b5b50
Some widget fixes.
6 years ago
NCPlayz
8a30a4cac0
Add support for guild widget
6 years ago