Skip to main content
Module

x/discord_api_types/v8.ts>RESTPostAPIChannelInviteJSONBody

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

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

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

Properties

optional
max_age: number | undefined

Duration of invite in seconds before expiry, or 0 for never

optional
max_uses: number | undefined

Max number of uses or 0 for unlimited

optional
temporary: boolean | undefined

Whether this invite only grants temporary membership

optional
unique: boolean | undefined

If true, don't try to reuse a similar invite (useful for creating many unique one time use invites)

optional
target_type: InviteTargetType | undefined
optional
target_user_id: Snowflake | undefined

The id of the user whose stream to display for this invite

  • Required if target_type is 1
  • The user must be streaming in the channel
optional
target_application_id: Snowflake | undefined

The id of the embedded application to open for this invite

  • Required if target_type is 2
  • The application must have the EMBEDDED flag