Skip to main content
Module

x/discord_api_types/v8.ts>GatewayInviteCreateDispatchData

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface GatewayInviteCreateDispatchData
Deprecated
Deprecated

API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.

import { type GatewayInviteCreateDispatchData } from "https://deno.land/x/discord_api_types@0.37.11/v8.ts";

Properties

channel_id: Snowflake

The channel the invite is for

created_at: number

The time at which the invite was created

optional
guild_id: Snowflake

The guild of the invite

optional
inviter: APIUser
max_age: number

How long the invite is valid for (in seconds)

max_uses: number

The maximum number of times the invite can be used

optional
target_type: InviteTargetType
optional
target_user: APIUser

The user whose stream to display for this voice channel stream invite

See https://discord.com/developers/docs/resources/user#user-object

optional
target_application: Partial<APIApplication>

The embedded application to open for this voice channel embedded application invite

temporary: boolean

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

uses: 0

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