feat: Extend sticker description generation to support GIF format

This commit is contained in:
Slipstream 2025-05-29 11:43:53 -06:00
parent fd13c35afd
commit 8856ff17e5
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -310,7 +310,7 @@ class GurtCog(commands.Cog, name="Gurt"): # Added explicit Cog name
print(f"Generating description for sticker: {sticker.name} (ID: {sticker.id}) in guild ID {guild_id}")
description_to_add = "No description generated."
if sticker.format == discord.StickerFormatType.png or sticker.format == discord.StickerFormatType.apng:
if sticker.format == discord.StickerFormatType.png or sticker.format == discord.StickerFormatType.apng or sticker.format == discord.StickerFormatType.gif:
mime_type = "image/png"
description = await api.generate_image_description(self, sticker_url, sticker.name, "sticker", mime_type)
description_to_add = description or "No description generated."