diskord
5.2.0
common
diskord-core
/
com.jessecorbett.diskord.api.channel
/
CreateInvite
Create
Invite
@
Serializable
data
class
CreateInvite
(
val
expiresInSeconds
:
Int
=
86400
,
val
maxUses
:
Int
,
val
temporaryMembership
:
Boolean
,
val
doNotAttemptReuse
:
Boolean
,
val
targetUserId
:
String
?
=
null
,
val
targetUserType
:
Int
?
=
null
)
(
source
)
Members
Constructors
Create
Invite
Link copied to clipboard
constructor
(
expiresInSeconds
:
Int
=
86400
,
maxUses
:
Int
,
temporaryMembership
:
Boolean
,
doNotAttemptReuse
:
Boolean
,
targetUserId
:
String
?
=
null
,
targetUserType
:
Int
?
=
null
)
Properties
do
Not
Attempt
Reuse
Link copied to clipboard
@
SerialName
(
value
=
"unique"
)
val
doNotAttemptReuse
:
Boolean
expires
In
Seconds
Link copied to clipboard
@
SerialName
(
value
=
"max_age"
)
val
expiresInSeconds
:
Int
=
86400
max
Uses
Link copied to clipboard
@
SerialName
(
value
=
"max_uses"
)
val
maxUses
:
Int
target
User
Id
Link copied to clipboard
@
SerialName
(
value
=
"target_user"
)
val
targetUserId
:
String
?
=
null
target
User
Type
Link copied to clipboard
@
SerialName
(
value
=
"target_user_type"
)
val
targetUserType
:
Int
?
=
null
temporary
Membership
Link copied to clipboard
@
SerialName
(
value
=
"temporary"
)
val
temporaryMembership
:
Boolean