34bf026a02
Add support for get sticker pack
2024-08-28 16:15:26 -04:00
7cf6df166d
Fix url for GIF StickerItem
2024-08-28 15:48:19 -04:00
1c6f3c5ff1
[docs] Remove pack_id attribute from Sticker
...
[docs] Remove unnecessary pack_id
2024-08-28 15:37:32 -04:00
61eddfcb18
Fix sticker URL for GIF stickers
2024-02-20 16:59:24 -05:00
ab287e71b8
Fix 'available' KeyError for GuildSticker
...
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com >
2023-04-01 04:57:00 -04:00
ce06beeb6c
Fix permissions-based docstrings to be more consistent
2022-09-17 14:07:39 -04:00
20d3871290
Add return type hint for some functions
2022-07-15 00:15:42 -04:00
d600436378
[types] Use PEP-655 style Required/NotRequired types
2022-04-02 01:46:10 -04:00
5ffa3e85de
Update comments after # type: ignore
to be compatible with PEP 484
2022-03-27 22:26:34 -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
3ce00abeae
Fix some type-check errors
2022-02-22 03:59:58 -05:00
3c6281ce33
Set attributes of StickerPack as Optional
2022-02-21 06:25:23 -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
769db38401
Fix typing error in sticker edit
2021-08-23 23:52:45 -04:00
490bbffc93
Remove in-place edits and return fresh instances instead
...
Fixes #4098
2021-08-23 23:46:50 -04:00
655bf25cc8
Document TypeError raise in lottie sticker
2021-07-30 23:18:03 -04:00
6beef898c6
Rename instances of nitro to premium
2021-07-30 23:10:36 -04:00
60d82cf908
implement guild stickers
2021-07-30 21:25:41 -04:00
f27e2e073f
Fix crash involving stickers
2021-06-12 11:56:51 -04:00
7e1f8bf1b4
Typehint Sticker
2021-05-29 00:19:11 -04:00
cbbd31cc9f
fix AttributeError in Sticker.image
2021-04-29 02:16:55 -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
b610998491
Remove Sticker.preview_image
2021-04-16 08:19:39 -04:00
74f92387ac
Add periods to sticker docs
2021-04-16 07:51:02 -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
ff7094ce96
Convert datetimes to aware datetimes with UTC.
...
Naive datetimes will now be interpreted as local time throughout
the library.
2021-04-04 23:54:08 -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
69bdc3a184
Change copyright year to present
2021-01-15 05:28:11 -05:00
5bad633987
Fix preview_asset key name in Sticker
2020-11-23 06:23:06 -05:00
c8954906cb
Sticker implementation cleanup
2020-11-23 06:05:25 -05:00
344cb96c5d
Add sticker support
2020-11-23 05:09:20 -05:00