Skip to main content

Interface IInvite

Represents a generic invite object.

Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public interface IInvite : IEntity<string>, IDeletable

Properties​

Code​

Gets the unique identifier for this invite.

View Source​
Declaration
string Code { get; }

Url​

Gets the URL used to accept this invite using Discord.IInvite.Code.

View Source​
Declaration
string Url { get; }

Inviter​

Gets the user that created this invite.

View Source​
Declaration
IUser Inviter { get; }

Channel​

Gets the channel this invite is linked to.

View Source​
Declaration
IChannel Channel { get; }

ChannelType​

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

View Source​
Declaration
ChannelType ChannelType { get; }

ChannelId​

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

View Source​
Declaration
ulong ChannelId { get; }

ChannelName​

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

View Source​
Declaration
string ChannelName { get; }

Guild​

Gets the guild this invite is linked to.

View Source​
Declaration
IGuild Guild { get; }

GuildId​

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

View Source​
Declaration
ulong? GuildId { get; }

GuildName​

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

View Source​
Declaration
string GuildName { get; }

PresenceCount​

Gets the approximated count of online members in the guild.

View Source​
Declaration
int? PresenceCount { get; }

MemberCount​

Gets the approximated count of total members in the guild.

View Source​
Declaration
int? MemberCount { get; }

TargetUser​

Gets the user this invite is linked to via Discord.IInvite.TargetUserType.

View Source​
Declaration
IUser TargetUser { get; }

TargetUserType​

Gets the type of the linked Discord.IInvite.TargetUser for this invite.

View Source​
Declaration
TargetUserType TargetUserType { get; }