Skip to content

Commit

Permalink
Fix crash involving stickers
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed Jun 12, 2021
1 parent e79321c commit 9376fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/sticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(self, *, state, data):
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']

Expand Down

0 comments on commit 9376fcd

Please sign in to comment.