Skip to content

Commit

Permalink
Adding FileIds to MessageUpdate to allow removing and re-adding files…
Browse files Browse the repository at this point in the history
… on a message
  • Loading branch information
soxtoby committed May 28, 2023
1 parent d2668fb commit ad60395
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SlackNet/WebApi/ChatApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ public Task<MessageUpdateResponse> Update(MessageUpdate messageUpdate, Cancellat
{ "blocks", messageUpdate.Blocks },
{ "parse", messageUpdate.Parse },
{ "link_names", messageUpdate.LinkNames },
{ "as_user", messageUpdate.AsUser }
{ "as_user", messageUpdate.AsUser },
{ "file_ids", messageUpdate.FileIds }
},
cancellationToken);
}
4 changes: 4 additions & 0 deletions SlackNet/WebApi/Responses/MessageUpdate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ public class MessageUpdate
/// Set to True to update the message as the authed user. Bot users in this context are considered authed users.
/// </summary>
public bool? AsUser { get; set; }
/// <summary>
/// Array of new file ids that will be sent with this message.
/// </summary>
public IList<string> FileIds { get; set; }
}

0 comments on commit ad60395

Please sign in to comment.