Table of Contents

Interface IInvite

Namespace
Discord
Assembly
Discord.Net.Core.dll

Represents a generic invite object.

public interface IInvite : IEntity<string>, IDeletable
Inherited Members

Properties

Application

Gets the embedded application to open for this voice channel embedded application invite.

IApplication Application { get; }

Property Value

IApplication

A partial IApplication object. null if TargetUserType is not EmbeddedApplication.

Channel

Gets the channel this invite is linked to.

IChannel Channel { get; }

Property Value

IChannel

A generic channel that the invite points to.

ChannelId

Gets the ID of the channel this invite is linked to.

ulong ChannelId { get; }

Property Value

ulong

An ulong representing the channel snowflake identifier that the invite points to.

ChannelName

Gets the name of the channel this invite is linked to.

string ChannelName { get; }

Property Value

string

A string containing the name of the channel that the invite points to.

ChannelType

Gets the type of the channel this invite is linked to.

ChannelType ChannelType { get; }

Property Value

ChannelType

Code

Gets the unique identifier for this invite.

string Code { get; }

Property Value

string

A string containing the invite code (e.g. FTqNnyS).

ExpiresAt

Gets the expiration date of this invite. null if the invite never expires.

DateTimeOffset? ExpiresAt { get; }

Property Value

DateTimeOffset?

Guild

Gets the guild this invite is linked to.

IGuild Guild { get; }

Property Value

IGuild

A guild object representing the guild that the invite points to.

GuildId

Gets the ID of the guild this invite is linked to.

ulong? GuildId { get; }

Property Value

ulong?

An ulong representing the guild snowflake identifier that the invite points to.

GuildName

Gets the name of the guild this invite is linked to.

string GuildName { get; }

Property Value

string

A string containing the name of the guild that the invite points to.

Inviter

Gets the user that created this invite.

IUser Inviter { get; }

Property Value

IUser

A user that created this invite.

MemberCount

Gets the approximated count of total members in the guild.

int? MemberCount { get; }

Property Value

int?

An int representing the approximated total member count of the guild that the invite points to; null if one cannot be obtained.

PresenceCount

Gets the approximated count of online members in the guild.

int? PresenceCount { get; }

Property Value

int?

An int representing the approximated online member count of the guild that the invite points to; null if one cannot be obtained.

TargetUser

Gets the user this invite is linked to via TargetUserType.

IUser TargetUser { get; }

Property Value

IUser

A user that is linked to this invite.

TargetUserType

Gets the type of the linked TargetUser for this invite.

TargetUserType TargetUserType { get; }

Property Value

TargetUserType

The type of the linked user that is linked to this invite.

Url

Gets the URL used to accept this invite using Code.

string Url { get; }

Property Value

string

A string containing the full invite URL (e.g. https://discord.gg/FTqNnyS).