InviteCreator

class InviteCreator(val yde: YDE, channelId: String)(source)

Constructors

Link copied to clipboard
constructor(yde: YDE, channelId: String)

Functions

Link copied to clipboard
fun create(): CompletableDeferred<InviteImpl>

Creates the invite.

Link copied to clipboard
fun maxAge(maxAge: Int): InviteCreator

Sets the max age of the invite. Between 0 and 604800 (7 days)

Link copied to clipboard
fun maxUses(maxUses: Int): InviteCreator

Sets the max uses of the invite. Between 0 and 100

Link copied to clipboard

Sets the target application of the invite.

Link copied to clipboard

Sets the target type of the invite.

Link copied to clipboard

Sets the target user of the invite.

Link copied to clipboard

Sets the temporary state of the invite.

Link copied to clipboard

Sets the unique state of the invite.

Properties

Link copied to clipboard
val yde: YDE