pycord-v3 icon indicating copy to clipboard operation
pycord-v3 copied to clipboard

feat: :sparkles: add unknown sticker format type to StickerFormatType enum

Open Paillat-dev opened this issue 7 months ago • 6 comments

fixes: #16

Paillat-dev avatar Aug 03 '25 22:08 Paillat-dev

this should probably just use try_enum instead, which has a built-in strategy for unknown values

NeloBlivion avatar Aug 04 '25 01:08 NeloBlivion

Yeah that makes sense

Paillat-dev avatar Aug 04 '25 08:08 Paillat-dev

This already uses try_enum wherever needed, I changed from png to None because it is better representative in my opinion

Paillat-dev avatar Aug 04 '25 11:08 Paillat-dev

i dont really get why we should use None instead of unknow. Its not really clear imo to have None as a format type

Lumabots avatar Aug 04 '25 12:08 Lumabots

So it's not the format type, it's the file extension. The format type will always be an integer, and if that integer exists in the enum it will be made into the enum with try_enum

Paillat-dev avatar Aug 04 '25 12:08 Paillat-dev

Documentation build overview

📚 pycord-next | 🛠️ Build #29428238 | 📁 Comparing aba3f15cd4a0bc6c991a0073091c919ba06ce33f against latest (049517e858866187bb3cdbd79fff418fb3955ebb)


🔍 Preview build

Show files changed (1 files in total): 📝 1 modified | ➕ 0 added | ➖ 0 deleted
File Status
_modules/discord/enums.html 📝 modified