From d583fd1d1e2226ee2dfd5d0c3cf10aa9ae22d505 Mon Sep 17 00:00:00 2001 From: Fedor Lapshin Date: Wed, 18 Jan 2023 02:03:15 +0300 Subject: [PATCH] feat(GuildPreview.IconURL): add docs for size Add documentation comment for size parameter of GuildPreview.IconURL function. --- structs.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/structs.go b/structs.go index 3ec90be..1c29a7e 100644 --- a/structs.go +++ b/structs.go @@ -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) }