discord: use placeholder if guild icon not available

also centers the invite on the form/user discord modal.
This commit is contained in:
Harvey Tindall
2023-06-19 17:48:24 +01:00
parent 765a749959
commit 094f7cea94
5 changed files with 15 additions and 4 deletions
+2
View File
@@ -210,7 +210,9 @@ func (d *DiscordDaemon) NewTempInvite(ageSeconds, maxUses int) (inviteURL, iconU
d.app.err.Printf("Discord: Failed to get guild: %v", err)
return
}
// FIXME: Fix CSS, and handle no icon
iconURL = guild.IconURL("256")
fmt.Println("GOT ICON", iconURL)
return
}