Merge pull request #549 from Mushroom/reactions

Added support for reaction 'me' field
This commit is contained in:
RogueException
2017-03-18 08:40:55 -03:00
committed by GitHub
5 changed files with 15 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ namespace Discord
Task UnpinAsync(RequestOptions options = null);
/// <summary> Returns all reactions included in this message. </summary>
IReadOnlyDictionary<Emoji, int> Reactions { get; }
IReadOnlyDictionary<Emoji, ReactionMetadata> Reactions { get; }
/// <summary> Adds a reaction to this message. </summary>
Task AddReactionAsync(Emoji emoji, RequestOptions options = null);

View File

@@ -0,0 +1,11 @@
namespace Discord
{
public struct ReactionMetadata
{
/// <summary> Gets the number of reactions </summary>
public int ReactionCount { get; internal set; }
/// <summary> Returns true if the current user has used this reaction </summary>
public bool IsMe { get; internal set; }
}
}