Skip to content

Commit

Permalink
feat(GuildPreview.IconURL): add docs for size
Browse files Browse the repository at this point in the history
Add documentation comment for size parameter of GuildPreview.IconURL
function.
  • Loading branch information
FedorLap2006 committed Jan 17, 2023
1 parent cb59c78 commit d583fd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit d583fd1

Please sign in to comment.