Skip to content

Commit 5c1f59a

Browse files
committed
fix: add fallback sticker format type
1 parent 7b0f851 commit 5c1f59a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/enums.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ def file_extension(self) -> str:
615615
StickerFormatType.apng: "png",
616616
StickerFormatType.lottie: "json",
617617
}
618-
return lookup[self]
618+
return lookup.get(self, "png")
619619

620620

621621
class InviteTarget(Enum):

0 commit comments

Comments
 (0)