Skip to content

DiscordInvite

DiscordInvite represents an invite link to a Discord server, providing methods to delete the invite.

Properties

code

DiscordInvite.code  :: string

type

DiscordInvite.type  :: number

guild

DiscordInvite.guild  :: {
       id: string,
       name: string,
    }

inviter

DiscordInvite.inviter  :: Objects.DiscordUser?

targetType

DiscordInvite.targetType  :: number

targetUser

DiscordInvite.targetUser  :: Objects.DiscordUser?

targetApplication

DiscordInvite.targetApplication  :: {
      {… id: string …}    }

Methods

deleteAsync

DiscordInvite : deleteAsync ()  -> Vendor.Future<unknown>

Deletes the invite asynchronously.

Functions

new

DiscordInvite . new (

     discordClient: any
     inviteData: table
)  -> ()

Creates a new instance of DiscordInvite.