Skip to content

Commit

Permalink
Make use of ISlackApiClient's new Post
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmurb committed Aug 19, 2019
1 parent 20a21e8 commit 390b4cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SlackNet/WebApi/ChatApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public Task<MessageTsResponse> MeMessage(string channel, string text, Cancellati
/// <param name="message">The message to post.</param>
/// <param name="cancellationToken"></param>
public Task<PostMessageResponse> PostMessage(Message message, CancellationToken? cancellationToken = null) =>
_client.Get<PostMessageResponse>("chat.postMessage", PopulateMessageArgs(message, new Args()),
_client.Post<PostMessageResponse>("chat.postMessage", PopulateMessageArgs(message, new Args()),
cancellationToken);

/// <summary>
Expand Down Expand Up @@ -158,7 +158,7 @@ private static Args PopulateMessageArgs(Message message, Args args)
/// <param name="message">The message to post. Not all message properties are supported by <c>PostEphemeral</c>.</param>
/// <param name="cancellationToken"></param>
public Task<PostMessageResponse> PostEphemeral(string userId, Message message, CancellationToken? cancellationToken = null) =>
_client.Get<PostMessageResponse>("chat.postEphemeral", new Args
_client.Post<PostMessageResponse>("chat.postEphemeral", new Args
{
{ "channel", message.Channel },
{ "text", message.Text },
Expand Down

0 comments on commit 390b4cf

Please sign in to comment.