diskord
5.2.0
common
diskord-core
/
com.jessecorbett.diskord.api.interaction
/
ModalSubmit
Modal
Submit
@
Serializable
@
SerialName
(
value
=
"5"
)
data
class
ModalSubmit
(
val
id
:
String
,
val
applicationId
:
String
,
val
data
:
ModalSubmit.Data
,
val
guildId
:
String
?
=
null
,
val
channelId
:
String
?
=
null
,
val
member
:
GuildMember
?
=
null
,
val
user
:
User
?
=
null
,
val
token
:
String
,
val
version
:
Int
,
val
appPermissions
:
String
?
=
null
,
val
userLocale
:
String
?
=
null
,
val
guildLocale
:
String
?
=
null
)
:
Interaction
(
source
)
Members
Constructors
Modal
Submit
Link copied to clipboard
constructor
(
id
:
String
,
applicationId
:
String
,
data
:
ModalSubmit.Data
,
guildId
:
String
?
=
null
,
channelId
:
String
?
=
null
,
member
:
GuildMember
?
=
null
,
user
:
User
?
=
null
,
token
:
String
,
version
:
Int
,
appPermissions
:
String
?
=
null
,
userLocale
:
String
?
=
null
,
guildLocale
:
String
?
=
null
)
Types
Action
Row
Response
Link copied to clipboard
@
Serializable
data
class
ActionRowResponse
(
val
components
:
List
<
ModalSubmit.ComponentResponse
>
)
Component
Response
Link copied to clipboard
@
Serializable
data
class
ComponentResponse
(
val
type
:
Int
,
val
customId
:
String
,
val
value
:
String
)
Data
Link copied to clipboard
@
Serializable
data
class
Data
(
val
modalCustomId
:
String
,
val
componentResponses
:
List
<
ModalSubmit.ActionRowResponse
>
)
Properties
application
Id
Link copied to clipboard
@
SerialName
(
value
=
"application_id"
)
open
override
val
applicationId
:
String
app
Permissions
Link copied to clipboard
@
SerialName
(
value
=
"app_permissions"
)
open
override
val
appPermissions
:
String
?
=
null
channel
Id
Link copied to clipboard
@
SerialName
(
value
=
"channel_id"
)
val
channelId
:
String
?
=
null
data
Link copied to clipboard
@
SerialName
(
value
=
"data"
)
val
data
:
ModalSubmit.Data
guild
Id
Link copied to clipboard
@
SerialName
(
value
=
"guild_id"
)
val
guildId
:
String
?
=
null
guild
Locale
Link copied to clipboard
@
SerialName
(
value
=
"guild_locale"
)
val
guildLocale
:
String
?
=
null
id
Link copied to clipboard
@
SerialName
(
value
=
"id"
)
open
override
val
id
:
String
member
Link copied to clipboard
@
SerialName
(
value
=
"member"
)
val
member
:
GuildMember
?
=
null
token
Link copied to clipboard
@
SerialName
(
value
=
"token"
)
open
override
val
token
:
String
user
Link copied to clipboard
@
SerialName
(
value
=
"user"
)
val
user
:
User
?
=
null
user
Locale
Link copied to clipboard
@
SerialName
(
value
=
"locale"
)
val
userLocale
:
String
?
=
null
version
Link copied to clipboard
@
SerialName
(
value
=
"version"
)
open
override
val
version
:
Int