CreateInviteInput
Defined in: bot/bot.type.ts:667
What POST /channels/{id}/invites takes.
Properties
Section titled “Properties”max_age?
Section titled “max_age?”
optionalmax_age?:number
Defined in: bot/bot.type.ts:669
Seconds until it expires; 0 never. Discord’s default is 86400.
max_uses?
Section titled “max_uses?”
optionalmax_uses?:number
Defined in: bot/bot.type.ts:671
Uses before it is revoked; 0 unlimited.
temporary?
Section titled “temporary?”
optionaltemporary?:boolean
Defined in: bot/bot.type.ts:673
Whether the invite grants temporary membership.
unique?
Section titled “unique?”
optionalunique?:boolean
Defined in: bot/bot.type.ts:675
Whether to always create a new invite instead of reusing a similar one.