mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
feat(discord): remove hardcoded username (#323)
This commit is contained in:
parent
f63ace662a
commit
b5e033832a
1 changed files with 4 additions and 6 deletions
|
@ -17,7 +17,6 @@ import (
|
|||
type DiscordMessage struct {
|
||||
Content interface{} `json:"content"`
|
||||
Embeds []DiscordEmbeds `json:"embeds,omitempty"`
|
||||
Username string `json:"username"`
|
||||
}
|
||||
|
||||
type DiscordEmbeds struct {
|
||||
|
@ -55,7 +54,6 @@ func (a *discordSender) Send(event domain.NotificationEvent, payload domain.Noti
|
|||
m := DiscordMessage{
|
||||
Content: nil,
|
||||
Embeds: []DiscordEmbeds{a.buildEmbed(event, payload)},
|
||||
Username: "brr",
|
||||
}
|
||||
|
||||
jsonData, err := json.Marshal(m)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue