Skip to main content
Module

x/denord/mod.ts>InviteCreateEvent

🗣 Discord API module
Latest
interface InviteCreateEvent
import { type InviteCreateEvent } from "https://deno.land/x/denord@0.1.0/mod.ts";

Properties

channelId: ChannelId

the channel the invite is for

the unique invite code

createdAt: Date

the time at which the invite was created

optional
guildId: GuildId

the guild of the invite

optional
inviter: User

the user that created the invite

maxAge: integer

how long the invite is valid for (in seconds)

maxUses: integer

the maximum number of times the invite can be used

optional
targetUser: Partial<User>

the target user for this invite

optional
targetUserType: integer

the type of user target for this invite

temporary: boolean

whether or not the invite is temporary (invited users will be kicked on disconnect unless they're assigned a role)

uses: integer

how many times the invite has been used (always will be 0)