Skip to content

Commit

Permalink
Fixed reaction models
Browse files Browse the repository at this point in the history
  • Loading branch information
Auralytical committed Jul 22, 2018
1 parent c038c39 commit af0035c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Wumpus.Net.Gateway/Events/MessageReactionAddEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ public class MessageReactionAddEvent
/// <summary> The id of the <see cref="User"/>. </summary>
[ModelProperty("user_id")]
public Snowflake UserId { get; set; }
// TODO: Undocumented (https://github.com/discordapp/discord-api-docs/issues/582)
[ModelProperty("guild_id")]
public Snowflake GuildId { get; set; }
/// <summary> The id of the <see cref="Channel"/>. </summary>
[ModelProperty("channel_id")]
public Snowflake ChannelId { get; set; }
/// <summary> The id of the <see cref="Message"/>. </summary>
[ModelProperty("message_Id")]
[ModelProperty("message_id")]
public Snowflake MessageId { get; set; }
/// <summary> A partial <see cref="Emoji"/> object used to react. </summary>
[ModelProperty("emoji")]
Expand Down
3 changes: 3 additions & 0 deletions src/Wumpus.Net.Gateway/Events/MessageReactionRemoveAll.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ namespace Wumpus.Events
/// </summary>
public class MessageReactionRemoveAllEvent
{
// TODO: Undocumented (https://github.com/discordapp/discord-api-docs/issues/582)
[ModelProperty("guild_id")]
public Snowflake GuildId { get; set; }
/// <summary> The id of the <see cref="Entities.Channel"/>. </summary>
[ModelProperty("channel_id")]
public Snowflake ChannelId { get; set; }
Expand Down
5 changes: 4 additions & 1 deletion src/Wumpus.Net.Gateway/Events/MessageReactionRemoveEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ public class MessageReactionRemoveEvent
/// <summary> The id of the <see cref="User"/>. </summary>
[ModelProperty("user_id")]
public Snowflake UserId { get; set; }
// TODO: Undocumented (https://github.com/discordapp/discord-api-docs/issues/582)
[ModelProperty("guild_id")]
public Snowflake GuildId { get; set; }
/// <summary> The id of the <see cref="Channel"/>. </summary>
[ModelProperty("channel_id")]
public Snowflake ChannelId { get; set; }
/// <summary> The id of the <see cref="Message"/>. </summary>
[ModelProperty("message_Id")]
[ModelProperty("message_id")]
public Snowflake MessageId { get; set; }
/// <summary> A partial <see cref="Emoji"/> object used to react. </summary>
[ModelProperty("emoji")]
Expand Down

0 comments on commit af0035c

Please sign in to comment.