From 7cf6df166d522867ee73426662db99eb370cf2c1 Mon Sep 17 00:00:00 2001 From: Gaurav Date: Thu, 29 Aug 2024 01:18:19 +0530 Subject: [PATCH] Fix url for GIF StickerItem --- discord/sticker.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/discord/sticker.py b/discord/sticker.py index 96deef475..ebaf1534c 100644 --- a/discord/sticker.py +++ b/discord/sticker.py @@ -203,7 +203,10 @@ class StickerItem(_StickerTag): self.name: str = data['name'] self.id: int = int(data['id']) self.format: StickerFormatType = try_enum(StickerFormatType, data['format_type']) - self.url: str = f'{Asset.BASE}/stickers/{self.id}.{self.format.file_extension}' + if self.format is StickerFormatType.gif: + self.url: str = f'https://media.discordapp.net/stickers/{self.id}.gif' + else: + self.url: str = f'{Asset.BASE}/stickers/{self.id}.{self.format.file_extension}' def __repr__(self) -> str: return f''