Skip to content

Commit d583fd1

Browse files
committed
feat(GuildPreview.IconURL): add docs for size
Add documentation comment for size parameter of GuildPreview.IconURL function.
1 parent cb59c78 commit d583fd1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

structs.go

+3
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,9 @@ type GuildPreview struct {
916916
}
917917

918918
// IconURL returns a URL to the guild's icon.
919+
//
920+
// size: The size of the desired icon image as a power of two
921+
// Image size can be any power of two between 16 and 4096.
919922
func (g *GuildPreview) IconURL(size string) string {
920923
return iconURL(g.Icon, EndpointGuildIcon(g.ID, g.Icon), EndpointGuildIconAnimated(g.ID, g.Icon), size)
921924
}

0 commit comments

Comments
 (0)