Browse Source

Brought back Message.IsAuthor

tags/docs-0.9
RogueException 9 years ago
parent
commit
abe69cc65a
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/Discord.Net/Models/Message.cs

+ 2
- 0
src/Discord.Net/Models/Message.cs View File

@@ -198,6 +198,8 @@ namespace Discord
/// <summary> Returns the server containing the channel this message was sent to. </summary>
public Server Server => Channel.Server;
/// <summary> Returns if this message was sent from the logged-in accounts. </summary>
public bool IsAuthor => User.Id == Client.CurrentUser?.Id;

internal Message(ulong id, Channel channel, User user)
{


Loading…
Cancel
Save