diff --git a/internal/notifier/discord.go b/internal/notifier/discord.go index c0378424f..1e0bd9f05 100644 --- a/internal/notifier/discord.go +++ b/internal/notifier/discord.go @@ -17,7 +17,6 @@ limitations under the License. package notifier import ( - "errors" "fmt" "net/url" "path" @@ -48,14 +47,6 @@ func NewDiscord(hookURL string, proxyURL string, username string, channel string hookURL = webhook.String() } - if username == "" { - return nil, errors.New("empty Discord username") - } - - if channel == "" { - return nil, errors.New("empty Discord channel") - } - return &Discord{ Channel: channel, URL: hookURL, @@ -72,7 +63,6 @@ func (s *Discord) Post(event events.Event) error { } payload := SlackPayload{ - Channel: s.Channel, Username: s.Username, } if payload.Username == "" {