feat(GuildPreview.IconURL): add docs for size

Add documentation comment for size parameter of GuildPreview.IconURL
function.
This commit is contained in:
Fedor Lapshin 2023-01-18 02:03:15 +03:00
parent cb59c78e32
commit d583fd1d1e
No known key found for this signature in database
GPG key ID: 492D745FB49D2DAB

View file

@ -916,6 +916,9 @@ type GuildPreview struct {
}
// IconURL returns a URL to the guild's icon.
//
// size: The size of the desired icon image as a power of two
// Image size can be any power of two between 16 and 4096.
func (g *GuildPreview) IconURL(size string) string {
return iconURL(g.Icon, EndpointGuildIcon(g.ID, g.Icon), EndpointGuildIconAnimated(g.ID, g.Icon), size)
}