mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-13 05:15:22 +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
|
png = 1
|
||||||
apng = 2
|
apng = 2
|
||||||
lottie = 3
|
lottie = 3
|
||||||
|
gif = 4
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def file_extension(self) -> str:
|
def file_extension(self) -> str:
|
||||||
@ -543,6 +544,7 @@ class StickerFormatType(Enum):
|
|||||||
StickerFormatType.png: 'png',
|
StickerFormatType.png: 'png',
|
||||||
StickerFormatType.apng: 'png',
|
StickerFormatType.apng: 'png',
|
||||||
StickerFormatType.lottie: 'json',
|
StickerFormatType.lottie: 'json',
|
||||||
|
StickerFormatType.gif: 'gif',
|
||||||
}
|
}
|
||||||
# fmt: on
|
# fmt: on
|
||||||
return lookup[self]
|
return lookup[self]
|
||||||
|
@ -2870,6 +2870,12 @@ of :class:`enum.Enum`.
|
|||||||
|
|
||||||
Represents a sticker with a lottie image.
|
Represents a sticker with a lottie image.
|
||||||
|
|
||||||
|
.. attribute:: gif
|
||||||
|
|
||||||
|
Represents a sticker with a gif image.
|
||||||
|
|
||||||
|
.. versionadded:: 2.2
|
||||||
|
|
||||||
.. class:: InviteTarget
|
.. class:: InviteTarget
|
||||||
|
|
||||||
Represents the invite type for voice channel invites.
|
Represents the invite type for voice channel invites.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user