From 53e70a595fa264311439f57a7180632d4a5bcd0f Mon Sep 17 00:00:00 2001 From: Still Hsu <341464@gmail.com> Date: Mon, 8 Oct 2018 21:37:21 +0800 Subject: [PATCH] Clarify IUserMessage Add/RemoveReactionAsync samples --- .../Entities/Messages/IUserMessage.cs | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/src/Discord.Net.Core/Entities/Messages/IUserMessage.cs b/src/Discord.Net.Core/Entities/Messages/IUserMessage.cs index b31890e51..1a8c54ab1 100644 --- a/src/Discord.Net.Core/Entities/Messages/IUserMessage.cs +++ b/src/Discord.Net.Core/Entities/Messages/IUserMessage.cs @@ -12,10 +12,15 @@ namespace Discord /// /// Modifies this message. /// + /// + /// This method modifies this message with the specified properties. To see an example of this + /// method and what properties are available, please refer to . + /// /// - /// - /// await msg.ModifyAsync(x => x.Content = "Hello World!"); - /// + /// The following example replaces the content of the message with Hello World!. + /// + /// await msg.ModifyAsync(x => x.Content = "Hello World!"); + /// /// /// A delegate containing the properties to modify the message with. /// The options to be used when sending the request. @@ -49,9 +54,10 @@ namespace Discord /// Adds a reaction to this message. /// /// - /// - /// await msg.AddReactionAsync(new Emoji("\U0001f495")); - /// + /// The following example adds the reaction, 💕, to the message. + /// + /// await msg.AddReactionAsync(new Emoji("\U0001f495")); + /// /// /// The emoji used to react to this message. /// The options to be used when sending the request. @@ -64,9 +70,10 @@ namespace Discord /// Removes a reaction from message. /// /// - /// - /// await msg.RemoveReactionAsync(new Emoji("\U0001f495"), msg.Author); - /// + /// The following example removes the reaction, 💕, added by the message author from the message. + /// + /// await msg.RemoveReactionAsync(new Emoji("\U0001f495"), msg.Author); + /// /// /// The emoji used to react to this message. /// The user that added the emoji. @@ -89,6 +96,7 @@ namespace Discord /// Gets all users that reacted to a message with a given emote. /// /// + /// The following example gets the users that have reacted with the emoji 💕 to the message. /// /// var emoji = new Emoji("\U0001f495"); /// var reactedUsers = await message.GetReactionUsersAsync(emoji, 100).FlattenAsync();