diskord
5.2.0
common
diskord-core
/
com.jessecorbett.diskord.api.webhook
/
WebhookSubmission
Webhook
Submission
@
Serializable
data
class
WebhookSubmission
(
val
content
:
String
?
,
val
overrideUsername
:
String
?
=
null
,
val
overrideAvatarUrl
:
String
?
=
null
,
val
useTTS
:
Boolean
=
false
,
val
fileContent
:
List
<
Byte
>
?
=
null
,
val
embeds
:
List
<
Embed
>
=
emptyList()
,
val
fileUploadEmbed
:
String
?
=
null
,
val
allowedMentions
:
AllowedMentions
=
AllowedMentions.ALL
)
(
source
)
Deprecated
Use CreateWebhookMessage instead.
Replace with
CreateWebhookMessage
Content copied to clipboard
Members
Constructors
Webhook
Submission
Link copied to clipboard
constructor
(
content
:
String
?
,
overrideUsername
:
String
?
=
null
,
overrideAvatarUrl
:
String
?
=
null
,
useTTS
:
Boolean
=
false
,
fileContent
:
List
<
Byte
>
?
=
null
,
embeds
:
List
<
Embed
>
=
emptyList()
,
fileUploadEmbed
:
String
?
=
null
,
allowedMentions
:
AllowedMentions
=
AllowedMentions.ALL
)
Properties
allowed
Mentions
Link copied to clipboard
@
SerialName
(
value
=
"allowed_mentions"
)
val
allowedMentions
:
AllowedMentions
content
Link copied to clipboard
@
SerialName
(
value
=
"content"
)
val
content
:
String
?
embeds
Link copied to clipboard
@
SerialName
(
value
=
"embeds"
)
val
embeds
:
List
<
Embed
>
file
Content
Link copied to clipboard
@
SerialName
(
value
=
"file"
)
val
fileContent
:
List
<
Byte
>
?
=
null
file
Upload
Embed
Link copied to clipboard
@
SerialName
(
value
=
"payload_json"
)
val
fileUploadEmbed
:
String
?
=
null
override
Avatar
Url
Link copied to clipboard
@
SerialName
(
value
=
"avatar_url"
)
val
overrideAvatarUrl
:
String
?
=
null
override
Username
Link copied to clipboard
@
SerialName
(
value
=
"username"
)
val
overrideUsername
:
String
?
=
null
use
TTS
Link copied to clipboard
@
SerialName
(
value
=
"tts"
)
val
useTTS
:
Boolean
=
false