Invite - truemedian/Discordia GitHub Wiki

Inherits Container

Represents an invitation to a Discord guild channel. Invites can be used to join a guild, though they are not always permanent.

Methods

delete

Properties

code
guildId
guildName
channelId
channelName
channelType
guildIcon
guildSplash
guildIconURL
guildSplashURL
inviter
uses
maxUses
maxAge
temporary
createdAt
revoked
approximatePresenceCount
approximateMemberCount

Inherited from Container
client
parent

Methods

:delete( )

Permanently deletes the invite. This cannot be undone!

Returns: boolean

Properties

.code

The invite's code which can be used to identify the invite.

Type: string

.guildId

The Snowflake ID of the guild to which this invite belongs.

Type: string

.guildName

The name of the guild to which this invite belongs.

Type: string

.channelId

The Snowflake ID of the channel to which this belongs.

Type: string

.channelName

The name of the channel to which this invite belongs.

Type: string

.channelType

The type of the channel to which this invite belongs. Use the channelType enumeration for a human-readable representation.

Type: number

.guildIcon

The hash for the guild's custom icon, if one is set.

Type: string|nil

.guildSplash

The hash for the guild's custom splash, if one is set.

Type: string|nil

.guildIconURL

The URL that can be used to view the guild's icon, if one is set.

Type: string|nil

.guildSplashURL

The URL that can be used to view the guild's splash, if one is set.

Type: string|nil

.inviter

The object of the user that created the invite. This will not exist if the invite is a guild widget or a vanity invite.

Type: User|nil

.uses

How many times this invite has been used. This will not exist if the invite is accessed via Client:getInvite.

Type: number|nil

.maxUses

The maximum amount of times this invite can be used. This will not exist if the invite is accessed via Client:getInvite.

Type: number|nil

.maxAge

How long, in seconds, this invite lasts before it expires. This will not exist if the invite is accessed via Client:getInvite.

Type: number|nil

.temporary

Whether the invite grants temporary membership. This will not exist if the invite is accessed via Client:getInvite.

Type: boolean|nil

.createdAt

The date and time at which the invite was created, represented as an ISO 8601 string plus microseconds when available. This will not exist if the invite is accessed via Client:getInvite.

Type: string

.revoked

Whether the invite has been revoked. This will not exist if the invite is accessed via Client:getInvite.

Type: boolean|nil

.approximatePresenceCount

The approximate count of online members.

Type: number|nil

.approximateMemberCount

The approximate count of all members.

Type: number|nil

Inherited from Container

.client

A shortcut to the client object to which this container is visible.

Type: Client

.parent

The parent object of to which this container is a child. For example, the parent of a role is the guild in which the role exists.

Type: Container|Client

⚠️ **GitHub.com Fallback** ⚠️