Browse Source

Add fallback for sticker filename lookup

pull/9229/head
Rapptz 2 years ago
parent
commit
441d38f56b
  1. 2
      discord/enums.py

2
discord/enums.py

@ -547,7 +547,7 @@ class StickerFormatType(Enum):
StickerFormatType.gif: 'gif', StickerFormatType.gif: 'gif',
} }
# fmt: on # fmt: on
return lookup[self] return lookup.get(self, 'png')
class InviteTarget(Enum): class InviteTarget(Enum):

Loading…
Cancel
Save