Skip to content

Commit

Permalink
Merge pull request #2360 from mastion/slack-webhook-username-not-from
Browse files Browse the repository at this point in the history
Slack webhook username not from
  • Loading branch information
matthid authored Jul 27, 2019
2 parents 7ea9751 + 79f5327 commit e85096b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions help/markdown/api-slack.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Slack.sendNotification webhookUrl (fun p ->
{p with
Text = "My Slack Notification!\n<https://google.com|Click Here>!"
Channel = "@SomeoneImportant"
Username = "My Slack User"
IconEmoji = ":ghost:"
Attachments = [|
{Slack.NotificationAttachmentDefaults with
Expand Down
4 changes: 2 additions & 2 deletions src/app/Fake.Api.Slack/SlackNotification.fs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module Slack =
/// (Required) The message body
Text: string
/// Name the message will appear to be sent from. Default value: Specified in your Slack Webhook configuration.
From: string
Username: string
/// Channel to which the message will be posted. Default value: Specified in your Slack Webhook configuration.
Channel: string
/// The icon to be displayed with the message. Default value: Specified in your slack Webhook configuration.
Expand All @@ -61,7 +61,7 @@ module Slack =
/// The default Slack notification parameters
let NotificationDefaults = {
Text = ""
From = null
Username = null
Channel = null
IconURL = null
IconEmoji = null
Expand Down

0 comments on commit e85096b

Please sign in to comment.