aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-06-12 11:56:51 -0400
committerRapptz <[email protected]>2021-06-12 12:04:25 -0400
commit9376fcd69d91f518bed89d99124c91af3df16f15 (patch)
treef7bfdd6a91cb34287e9dbb0a8d96e7f18a80a32e
parentFix DM channel permissions not having read_messages (diff)
downloaddiscord.py-9376fcd69d91f518bed89d99124c91af3df16f15.tar.xz
discord.py-9376fcd69d91f518bed89d99124c91af3df16f15.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 4096103c..e496370c 100644
--- a/discord/sticker.py
+++ b/discord/sticker.py
@@ -74,7 +74,7 @@ class Sticker(Hashable):
self.id = int(data['id'])
self.name = data['name']
self.description = data['description']
- self.pack_id = int(data['pack_id'])
+ self.pack_id = int(data.get('pack_id', 0))
self.format = try_enum(StickerType, data['format_type'])
self.image = data['asset']