Soheab
7b3f798044
Add support for guild onboarding
Co-authored-by: Josh <8677174+bijij@users.noreply.github.com>
Co-authored-by: Josh <josh.ja.butt@gmail.com>
Co-authored-by: numbermaniac <5206120+numbermaniac@users.noreply.github.com>
Co-authored-by: Andrin <65789180+Puncher1@users.noreply.github.com>
Co-authored-by: Andrin Schaller <65789180+codeofandrin@users.noreply.github.com>
Co-authored-by: DA344 <108473820+DA-344@users.noreply.github.com>
7 days ago
Alex Nørgaard
a7f2c670c9
Fix false positives in animated for PartialEmoji.from_str
2 years ago
Rapptz
ab265dcb7c
Add support for newest ForumChannel changes
This adds the following:
- Forum tag support
- Default reaction support
- Default slowmode for newly created threads
3 years ago
Lilly Rose Berner
7267d18d9e
Improve component typing
3 years ago
Steve C
fd5886a058
Add ValueError to PartialEmoji.read docstring
3 years ago
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
Co-authored-by: Josh <josh.ja.butt@gmail.com>
3 years ago
Josh
147948af9b
Use typing.Self throughout library
4 years ago
Josh
2b69b5d545
Remove discord.InvalidArgument
This uses TypeError and ValueError instead.
4 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.
4 years ago
Rapptz
93cc1bdd79
Fix typing errors in PartialEmoji
4 years ago
Rapptz
47f2d04940
Allow passing Emoji in components
4 years ago
Rapptz
6874aa73c4
Add PartialEmoji.from_str helper
4 years ago
Nadir Chowdhury
757cfad38f
Type up **kwargs of various methods
4 years ago
Rapptz
1bf7aadf94
Typehint emoji classes
4 years ago
Rapptz
fed259a83b
Refactor save() and read() into AssetMixin
4 years ago
Rapptz
9eaf1e85e4
Rewrite Asset design
This is a breaking change.
This does the following transformations, assuming `asset` represents
an asset type.
Object.is_asset_animated() => Object.asset.is_animated()
Object.asset => Object.asset.key
Object.asset_url => Object.asset_url
Object.asset_url_as => Object.asset.replace(...)
Since the asset type now requires a key (or hash, if you will),
Emoji had to be flattened similar to how Attachment was done since
these assets are keyed solely ID.
Emoji.url (Asset) => Emoji.url (str)
Emoji.url_as => removed
Emoji.url.read => Emoji.read
Emoji.url.save => Emoji.save
This transformation was also done to PartialEmoji.
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
z03h
fb9aa2486d
Add PartialEmoji.url_as
5 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
5 years ago
Steve C
6e6a3bed1a
Add created_at property to PartialEmoji
Also fixed docstring for PartialEmoji.url
5 years ago
Michael
93fa46713a
Fix and add documentation
5 years ago
Eugene
b3d2e24968
Fix possibility of PartialEmoji.id being a string
5 years ago
NCPlayz
c8f32f3151
animated key is never given to reaction_remove(_emoji)
5 years ago
Rapptz
6071607176
Bump copyright year to 2020
Closes #2510
6 years ago
Rapptz
15f0b000e1
Move PartialEmoji over to a new namespace to avoid circular imports
6 years ago