Browse Source

Added missing implementation.

pull/1530/head
Matt Smith 5 years ago
parent
commit
65938786f7
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      src/Discord.Net.Rest/Entities/Messages/RestUserMessage.cs

+ 8
- 0
src/Discord.Net.Rest/Entities/Messages/RestUserMessage.cs View File

@@ -148,6 +148,14 @@ namespace Discord.Rest
TagHandling roleHandling = TagHandling.Name, TagHandling everyoneHandling = TagHandling.Ignore, TagHandling emojiHandling = TagHandling.Name)
=> MentionUtils.Resolve(this, 0, userHandling, channelHandling, roleHandling, everyoneHandling, emojiHandling);

public async Task PublishAsync(RequestOptions options = null)
{
if (Channel.GetType() == typeof(RestNewsChannel))
{
await MessageHelper.PublishAsync(this, Discord, options);
}
}

private string DebuggerDisplay => $"{Author}: {Content} ({Id}{(Attachments.Count > 0 ? $", {Attachments.Count} Attachments" : "")})";
}
}

Loading…
Cancel
Save