Table of Contents

Class DiscordInvite

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

Represents a Discord invite.

public class DiscordInvite
Inheritance
object
DiscordInvite

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.

Code

Gets the invite's code.

CreatedAt

Gets the date and time this invite was created.

ExpiresAt

Gets the expiration date of this invite.

Guild

Gets the guild this invite is for.

Inviter

Gets the user who created the invite.

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.

StageInstance

Gets stage instance data for this invite if it is for a stage instance channel.

TargetApplication

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

TargetType

Gets the target application for this invite.

TargetUser

Gets the partial user that is currently livestreaming.

Uses

Gets the number of times this invite has been used.

Methods

DeleteAsync(string)

Deletes the invite.

ToString()

Converts this invite into an invite link.