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 >
2025-08-08 03:10:32 -04:00
a7f2c670c9
Fix false positives in animated for PartialEmoji.from_str
2023-06-21 09:30:25 -04:00
ab265dcb7c
Add support for newest ForumChannel changes
...
This adds the following:
- Forum tag support
- Default reaction support
- Default slowmode for newly created threads
2022-08-31 11:09:56 -04:00
7267d18d9e
Improve component typing
2022-05-16 15:30:03 -04:00
fd5886a058
Add ValueError to PartialEmoji.read docstring
2022-04-19 01:25:11 -04:00
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 >
2022-03-13 23:52:10 -04:00
147948af9b
Use typing.Self throughout library
2022-03-01 07:53:24 -05:00
2b69b5d545
Remove discord.InvalidArgument
...
This uses TypeError and ValueError instead.
2022-02-26 01:44:49 -05:00
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.
2022-02-20 08:04:58 -05:00
93cc1bdd79
Fix typing errors in PartialEmoji
2021-07-03 11:52:38 -04:00
47f2d04940
Allow passing Emoji in components
2021-06-02 05:30:42 -04:00
6874aa73c4
Add PartialEmoji.from_str helper
2021-05-28 05:34:21 -04:00
757cfad38f
Type up **kwargs of various methods
2021-05-10 20:24:48 -04:00
1bf7aadf94
Typehint emoji classes
2021-05-05 23:48:36 -04:00
fed259a83b
Refactor save() and read() into AssetMixin
2021-04-17 00:56:38 -04:00
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.
2021-04-16 11:27:23 -04:00
99fc950510
Use f-strings in more places that were missed.
2021-04-08 06:02:47 -04:00
89456022cf
Add __all__
to remaining modules
2021-04-07 02:30:32 -04:00
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`.
2021-04-04 07:03:53 -04:00
fb9aa2486d
Add PartialEmoji.url_as
2021-01-24 05:17:47 -05:00
69bdc3a184
Change copyright year to present
2021-01-15 05:28:11 -05:00
6e6a3bed1a
Add created_at property to PartialEmoji
...
Also fixed docstring for PartialEmoji.url
2020-12-06 03:59:20 -05:00
93fa46713a
Fix and add documentation
2020-09-23 03:19:35 -04:00
b3d2e24968
Fix possibility of PartialEmoji.id being a string
2020-05-29 23:24:46 -04:00
c8f32f3151
animated key is never given to reaction_remove(_emoji)
2020-04-06 04:58:27 -04:00
6071607176
Bump copyright year to 2020
...
Closes #2510
2020-01-19 20:03:00 -05:00
15f0b000e1
Move PartialEmoji over to a new namespace to avoid circular imports
2019-11-20 00:50:19 -05:00