Add fallback for sticker filename lookup

This commit is contained in:
Rapptz 2023-02-09 16:19:01 -05:00
parent 1395d3b495
commit 441d38f56b

View File

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