(ifcbrk) feature: Add ModifyMessageAsync to IMessageChannel (#1830)

This commit is contained in:
Paulo
2021-04-29 11:33:39 -03:00
committed by GitHub
parent 5b244f215b
commit 365a848f7a
12 changed files with 103 additions and 0 deletions

View File

@@ -257,6 +257,21 @@ namespace Discord
/// </returns>
Task DeleteMessageAsync(IMessage message, RequestOptions options = null);
/// <summary>
/// Modifies a message.
/// </summary>
/// <remarks>
/// This method modifies this message with the specified properties. To see an example of this
/// method and what properties are available, please refer to <see cref="MessageProperties"/>.
/// </remarks>
/// <param name="messageId">The snowflake identifier of the message that would be changed.</param>
/// <param name="func">A delegate containing the properties to modify the message with.</param>
/// <param name="options">The options to be used when sending the request.</param>
/// <returns>
/// A task that represents the asynchronous modification operation.
/// </returns>
Task<IUserMessage> ModifyMessageAsync(ulong messageId, Action<MessageProperties> func, RequestOptions options = null);
/// <summary>
/// Broadcasts the "user is typing" message to all users in this channel, lasting 10 seconds.
/// </summary>