Latest
interface CreateChannelInvite
implements WithReason
import { type CreateChannelInvite } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/fileloader/deps.ts";

Properties

optional
maxAge: number

Duration of invite in seconds before expiry, or 0 for never. Between 0 and 604800 (7 days). Default: 86400 (24 hours)

optional
maxUses: number

Max number of users or 0 for unlimited. Between 0 and 100. Default: 0

optional
temporary: boolean

Whether this invite only grants temporary membership. Default: false

optional
unique: boolean

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

optional
targetType: TargetTypes

The type of target for this voice channel invite

optional
targetUserId: BigString

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
targetApplicationId: BigString

The id of the embedded application to open for this invite, required if target_type is 2, the application must have the EMBEDDED flag