InvitePayload
InvitePayload
A utility class for creating invite payloads.
InvitePayload.create(payload)
Creates an invite object with the given payload.
Kind: static method of InvitePayload
Param | Type | Default | Description |
---|---|---|---|
payload | Object | The payload object containing the invite properties. | |
[payload.maxAge] | number | 86400 | The maximum age of the invite in seconds. |
[payload.maxUses] | number | undefined | The maximum number of times the invite can be used. | |
[payload.temporary] | boolean | undefined | Whether the invite is temporary or not. | |
[payload.targetType] | string | undefined | The type of target for the invite. | |
[payload.targetUser] | string | undefined | The ID of the target user for the |