aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-06-12 11:56:51 -0400
committerRapptz <[email protected]>2021-06-12 11:56:51 -0400
commitf27e2e073f81fbbcf9fb77a65cdfdc907ae5f51b (patch)
tree1941997bc97da971908763875b43e21bd4ca4f7c
parent[commands] Change EmojiConverter to use Client.get_emoji (diff)
downloaddiscord.py-f27e2e073f81fbbcf9fb77a65cdfdc907ae5f51b.tar.xz
discord.py-f27e2e073f81fbbcf9fb77a65cdfdc907ae5f51b.zip
Fix crash involving stickers
-rw-r--r--discord/sticker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/sticker.py b/discord/sticker.py
index 19c41850..235b66f2 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']