Browse Source

Added RestUser Documentation

pull/1161/head
Casino Boyale 7 years ago
parent
commit
afb007fd09
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      src/Discord.Net.Rest/Entities/Users/RestUser.cs

+ 7
- 0
src/Discord.Net.Rest/Entities/Users/RestUser.cs View File

@@ -65,6 +65,13 @@ namespace Discord.Rest
Update(model); Update(model);
} }


/// <summary>
/// Returns a direct message channel to this user, or create one if it does not already exist.
/// </summary>
/// <param name="options">The options to be used when sending the request.</param>
/// <returns>
/// An awaitable <see cref="Task"/> containing a <see cref="RestDMChannel"/>.
/// </returns>
public Task<RestDMChannel> GetOrCreateDMChannelAsync(RequestOptions options = null) public Task<RestDMChannel> GetOrCreateDMChannelAsync(RequestOptions options = null)
=> UserHelper.CreateDMChannelAsync(this, Discord, options); => UserHelper.CreateDMChannelAsync(this, Discord, options);




Loading…
Cancel
Save