Added: Customize Slack Channel (#2308) (Fixes #2298)

This commit is contained in:
grokdesigns
2017-12-04 01:07:42 -07:00
committed by Leonardo Galli
parent ffb098357d
commit 6a1b099117
3 changed files with 11 additions and 0 deletions

View File

@@ -109,6 +109,7 @@ namespace NzbDrone.Core.Notifications.Slack
private SlackPayload CreatePayload(string message, List<Attachment> attachments = null)
{
var icon = Settings.Icon;
var channel = Settings.Channel;
var payload = new SlackPayload
{
@@ -130,6 +131,11 @@ namespace NzbDrone.Core.Notifications.Slack
}
}
if (channel.IsNotNullOrWhiteSpace())
{
payload.Channel = channel;
}
return payload;
}
}