#Guild Icon returning None

1 messages · Page 1 of 1 (latest)

plush agate
#

What do you think about making the url property on the guild.icon return a transparent PNG if the icon is None instead of throwing a TypeError?

low seal
#

though of course im not the final opinion

plush agate
#

you can always check they type of guild.icon

#

which will be NoneType

#

and you could just take a transparent png from imgur and use it to replace the icon in such a case.

low seal
#

thats... not the issue

plush agate
#

ok

low seal
#

also assets (what are used for icons and the like) are a specific, discord-tied object

plush agate
#

ok i understand, it would cause confusion because it would be loaded a non discord-tied object

low seal
#

yeah

plush agate
#

makes sense now that you explained that

low seal
#

a transparent image we specifically hardcode would give the impression of officiality when it isnt