From 3dcfbc0fbb5c00caad58d3309145356e21ea019b Mon Sep 17 00:00:00 2001 From: bytedream Date: Fri, 24 Jun 2022 11:51:12 +0200 Subject: [PATCH] Add docs to wallpaper --- wallpaper.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wallpaper.go b/wallpaper.go index da7a032..e99bafb 100644 --- a/wallpaper.go +++ b/wallpaper.go @@ -5,10 +5,12 @@ import "fmt" // Wallpaper contains a wallpaper name which can be set via Account.ChangeWallpaper. type Wallpaper string +// TinyUrl returns the url to the wallpaper in low resolution. func (w *Wallpaper) TinyUrl() string { return fmt.Sprintf("https://static.crunchyroll.com/assets/wallpaper/360x115/%s", *w) } +// BigUrl returns the url to the wallpaper in high resolution. func (w *Wallpaper) BigUrl() string { return fmt.Sprintf("https://static.crunchyroll.com/assets/wallpaper/1920x400/%s", *w) }