allow not setting a username for messages (closes #38) (#39)

This commit is contained in:
Nils
2023-05-13 15:04:59 +00:00
committed by GitHub
parent 2830e39260
commit 7ac022b650
+1 -1
View File
@@ -110,7 +110,7 @@ type (
Payload struct {
Wait bool `json:"wait"`
Content string `json:"content"`
Username string `json:"username"`
Username string `json:"username,omitempty"`
AvatarURL string `json:"avatar_url"`
TTS bool `json:"tts"`
Embeds []EmbedObject `json:"embeds"`