From f27e2e073f81fbbcf9fb77a65cdfdc907ae5f51b Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 12 Jun 2021 11:56:51 -0400 Subject: [PATCH] Fix crash involving stickers --- discord/sticker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/sticker.py b/discord/sticker.py index 19c418501..235b66f2a 100644 --- a/discord/sticker.py +++ b/discord/sticker.py @@ -82,7 +82,7 @@ class Sticker(Hashable): self.id: int = int(data['id']) self.name: str = data['name'] self.description: str = data['description'] - self.pack_id: int = int(data['pack_id']) + self.pack_id: int = int(data.get('pack_id', 0)) self.format: StickerType = try_enum(StickerType, data['format_type']) self._image: str = data['asset']