Add support for GIF sticker type

This commit is contained in:
Rapptz 2023-01-10 18:18:43 -05:00
parent 48ef01204c
commit 24495e5505
2 changed files with 8 additions and 0 deletions

View File

@ -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]

View File

@ -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.