mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-23 11:26:51 +00:00
Add fallback for sticker filename lookup
This commit is contained in:
parent
1395d3b495
commit
441d38f56b
@ -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…
x
Reference in New Issue
Block a user