diff --git a/wazuh-notify-go/notification/discord.go b/wazuh-notify-go/notification/discord.go index dac2995..43160fa 100644 --- a/wazuh-notify-go/notification/discord.go +++ b/wazuh-notify-go/notification/discord.go @@ -16,7 +16,7 @@ func SendDiscord(params types.Params) { var embedDescription string - if slices.Contains(strings.Split(params.FullMessage, ","), "discord") { + if slices.Contains(strings.Split(params.FullAlert, ","), "discord") { fullAlert, _ := json.MarshalIndent(params.WazuhMessage, "", " ") fullAlertString := strings.ReplaceAll(string(fullAlert), `"`, "") fullAlertString = strings.ReplaceAll(fullAlertString, "{", "") diff --git a/wazuh-notify-go/types/types.go b/wazuh-notify-go/types/types.go index ce40ca3..436cfd9 100644 --- a/wazuh-notify-go/types/types.go +++ b/wazuh-notify-go/types/types.go @@ -7,7 +7,7 @@ type Params struct { Tags string Click string `yaml:"click,omitempty"` Targets string `yaml:"targets,omitempty"` - FullMessage string `yaml:"full_message,omitempty"` + FullAlert string `yaml:"full_message,omitempty"` ExcludedRules string `yaml:"excluded_rules,omitempty"` ExcludedAgents string `yaml:"excluded_agents,omitempty"` Color int