Table of Contents

Class DiscordInvite

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Represents a Discord invite.

public class DiscordInvite : SnowflakeObject
Inheritance
DiscordInvite
Inherited Members

Properties

ApproximateMemberCount

Gets the approximate guild total member count for the invite.

ApproximatePresenceCount

Gets the approximate guild online member count for the invite.

Channel

Gets the channel this invite is for.

ChannelId

Gets the channel id this invite is for.

Code

Gets the invite's code.

CreatedAt

Gets the date and time this invite was created.

ExpiredAt

Gets the date and time when this invite got expired.

ExpiresAt

Gets the date and time when this invite expires.

Flags

Gets the invites flags.

Guild

Gets the guild this invite is for.

GuildId

Gets the guild id this invite is for.

GuildScheduledEvent

Gets the guild scheduled event data for the invite.

Inviter

Gets the user who created the invite.

IsNicknameChangeable

Gets whether the useer can change their nickname on the guild.

IsRevoked

Gets whether this invite is revoked.

IsTemporary

Gets whether this invite only grants temporary membership.

MaxAge

Gets duration in seconds after which the invite expires.

MaxUses

Gets the max number of times this invite can be used.

Profile

Gets the guild profile, if applicable.

RoleIds

Gets the role ids to be assigned to the user on joining the guild via this invite.

Roles

Gets the roles to be assigned to the user on joining the guild via this invite.

TargetApplication

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

TargetType

Gets the target type for the voice channel this invite is for.

TargetUser

Gets the user that is currently livestreaming.

Type

Gets the type of this invite.

Uri

Gets the invite's url as Uri.

Url

Gets the invite's url.

Uses

Gets the number of times this invite has been used.

Methods

DeleteAsync(string)

Deletes the invite.

GetTargetUsersAsync()

Gets the target users allowed to accept an invite.

GetTargetUsersJobStatusAsync()

Gets the invite target users job status.

ToString()

Converts this invite into a link.

UpdateTargetUsersAsync(IEnumerable<DiscordUser>, string)

Updates the target users allowed to accept an invite using user objects.

UpdateTargetUsersAsync(IEnumerable<ulong>, string)

Updates the target users allowed to accept an invite using user ids.

UpdateTargetUsersAsync(Stream, string)

Updates the target users allowed to accept an invite using a CSV stream.