Skip to content

Conversation

@B1ue-Dev
Copy link
Contributor

About

This pull request is for adding icon_url property for returning the guild's icon under api.models.guild.Guild, which is currently not available and make it harder for users to get the guild's icon URL for different purposes, such as adding guild's icon into an embed message.

Checklist

@kyteware
Copy link
Contributor

dont you need to check for MISSING instead of None

@B1ue-Dev
Copy link
Contributor Author

Huh? I tested whenever when guild has no icon and the library returned None in the icon hash, so if not None can be used as well, since it is still None anyway.

@i0bs
Copy link
Contributor

i0bs commented Mar 28, 2022

MISSING is a type used for when we're sending something to the API but not defaulting to None, as it converts to null which some endpoints use for overwriting data.

@kyteware
Copy link
Contributor

ok that makes sense

@B1ue-Dev
Copy link
Contributor Author

@Astrea49 All done with the next commit.

@B1ue-Dev B1ue-Dev requested a review from AstreaTSS March 31, 2022 04:16
@B1ue-Dev
Copy link
Contributor Author

Closed due to conflict.

@kyteware
Copy link
Contributor

kyteware commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants