Class RestInvite
Assembly: Discord.Net.Rest.dll​
View Source​
public class RestInvite : RestEntity<string>, IInvite, IEntity<string>, IDeletable, IUpdateable
Properties​
ChannelType​
View Source​
public ChannelType ChannelType { get; }
ChannelName​
Gets the name of the channel this invite is linked to.
View Source​
public string ChannelName { get; }
GuildName​
Gets the name of the guild this invite is linked to.
View Source​
public string GuildName { get; }
PresenceCount​
Gets the approximated count of online members in the guild.
View Source​
public int? PresenceCount { get; }
MemberCount​
Gets the approximated count of total members in the guild.
View Source​
public int? MemberCount { get; }
ChannelId​
Gets the ID of the channel this invite is linked to.
View Source​
public ulong ChannelId { get; }
GuildId​
Gets the ID of the guild this invite is linked to.
View Source​
public ulong? GuildId { get; }
Inviter​
Gets the user that created this invite.
View Source​
public IUser Inviter { get; }
TargetUser​
Gets the user this invite is linked to via Discord.IInvite.TargetUserType.
View Source​
public IUser TargetUser { get; }
TargetUserType​
Gets the type of the linked Discord.IInvite.TargetUser for this invite.
View Source​
public TargetUserType TargetUserType { get; }
Code​
Gets the unique identifier for this invite.
View Source​
public string Code { get; }
Url​
Gets the URL used to accept this invite using Discord.IInvite.Code.
View Source​
public string Url { get; }
IInvite.Guild​
Gets the guild this invite is linked to.
View Source​
IGuild IInvite.Guild { get; }
IInvite.Channel​
Gets the channel this invite is linked to.
View Source​
IChannel IInvite.Channel { get; }
Methods​
UpdateAsync(RequestOptions)​
Updates this object's properties with its current state.
View Source​
public async Task UpdateAsync(RequestOptions options = null)
Returns​
System.Threading.Tasks.Task
Parameters​
Type | Name | Description |
---|---|---|
Discord.RequestOptions | options | The options to be used when sending the request. |
DeleteAsync(RequestOptions)​
Deletes this object and all its children.
View Source​
public Task DeleteAsync(RequestOptions options = null)
Returns​
System.Threading.Tasks.Task
Parameters​
Type | Name | Description |
---|---|---|
Discord.RequestOptions | options | The options to be used when sending the request. |
ToString()​
Gets the URL of the invite.
View Source​
public override string ToString()
Returns​
System.String
:
A string that resolves to the Url of the invite.