forked from pothtonswer/discordmuffin
feat(GuildPreview.IconURL): add docs for size
Add documentation comment for size parameter of GuildPreview.IconURL function.
This commit is contained in:
parent
cb59c78e32
commit
d583fd1d1e
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue