mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 00:07:51 +00:00
Add support for GIF sticker type
This commit is contained in:
parent
48ef01204c
commit
24495e5505
@ -535,6 +535,7 @@ class StickerFormatType(Enum):
|
||||
png = 1
|
||||
apng = 2
|
||||
lottie = 3
|
||||
gif = 4
|
||||
|
||||
@property
|
||||
def file_extension(self) -> str:
|
||||
@ -543,6 +544,7 @@ class StickerFormatType(Enum):
|
||||
StickerFormatType.png: 'png',
|
||||
StickerFormatType.apng: 'png',
|
||||
StickerFormatType.lottie: 'json',
|
||||
StickerFormatType.gif: 'gif',
|
||||
}
|
||||
# fmt: on
|
||||
return lookup[self]
|
||||
|
@ -2870,6 +2870,12 @@ of :class:`enum.Enum`.
|
||||
|
||||
Represents a sticker with a lottie image.
|
||||
|
||||
.. attribute:: gif
|
||||
|
||||
Represents a sticker with a gif image.
|
||||
|
||||
.. versionadded:: 2.2
|
||||
|
||||
.. class:: InviteTarget
|
||||
|
||||
Represents the invite type for voice channel invites.
|
||||
|
Loading…
x
Reference in New Issue
Block a user