Browse Source

Added RestInvite documentation

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

+ 6
- 0
src/Discord.Net.Rest/Entities/Invites/RestInvite.cs View File

@@ -62,6 +62,12 @@ namespace Discord.Rest
public Task DeleteAsync(RequestOptions options = null) public Task DeleteAsync(RequestOptions options = null)
=> InviteHelper.DeleteAsync(this, Discord, options); => InviteHelper.DeleteAsync(this, Discord, options);


/// <summary>
/// Gets the URL of the invite.
/// </summary>
/// <returns>
/// A string that is the URL of the invite.
/// </returns>
public override string ToString() => Url; public override string ToString() => Url;
private string DebuggerDisplay => $"{Url} ({GuildName} / {ChannelName})"; private string DebuggerDisplay => $"{Url} ({GuildName} / {ChannelName})";




Loading…
Cancel
Save