Browse Source

Added RestDMChannel documentation

pull/1161/head
Casino Boyale 7 years ago
parent
commit
b40ab464cc
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      src/Discord.Net.Rest/Entities/Channels/RestDMChannel.cs

+ 10
- 2
src/Discord.Net.Rest/Entities/Channels/RestDMChannel.cs View File

@@ -47,6 +47,14 @@ namespace Discord.Rest
public Task CloseAsync(RequestOptions options = null)
=> ChannelHelper.DeleteAsync(this, Discord, options);


/// <summary>
/// Gets a user in this channel from the provided <paramref name="id"/>.
/// </summary>
/// <param name="id">The snowflake identifier of the user.</param>
/// <returns>
/// A <see cref="RestUser"/> object that is a recipient of this channel; otherwise <c>null</c>.
/// </returns>
public RestUser GetUser(ulong id)
{
if (id == Recipient.Id)
@@ -175,10 +183,10 @@ namespace Discord.Rest
/// <inheritdoc />
async Task<IReadOnlyCollection<IMessage>> IMessageChannel.GetPinnedMessagesAsync(RequestOptions options)
=> await GetPinnedMessagesAsync(options).ConfigureAwait(false);
/// <inheritdoc />
async Task<IUserMessage> IMessageChannel.SendFileAsync(string filePath, string text, bool isTTS, Embed embed, RequestOptions options)
=> await SendFileAsync(filePath, text, isTTS, embed, options).ConfigureAwait(false);
/// <inheritdoc />
async Task<IUserMessage> IMessageChannel.SendFileAsync(Stream stream, string filename, string text, bool isTTS, Embed embed, RequestOptions options)
=> await SendFileAsync(stream, filename, text, isTTS, embed, options).ConfigureAwait(false);
/// <inheritdoc />


Loading…
Cancel
Save