diskord
5.2.0
common
diskord-core
/
com.jessecorbett.diskord.api.common
/
Webhook
Webhook
@
Serializable
data
class
Webhook
(
val
id
:
String
,
val
type
:
WebhookType
,
val
guildId
:
String
?
=
null
,
val
channelId
:
String
,
val
user
:
User
?
=
null
,
val
defaultName
:
String
?
,
val
defaultAvatarHash
:
String
?
,
val
token
:
String
?
=
null
,
val
applicationId
:
String
?
=
null
)
(
source
)
Members
Constructors
Webhook
Link copied to clipboard
constructor
(
id
:
String
,
type
:
WebhookType
,
guildId
:
String
?
=
null
,
channelId
:
String
,
user
:
User
?
=
null
,
defaultName
:
String
?
,
defaultAvatarHash
:
String
?
,
token
:
String
?
=
null
,
applicationId
:
String
?
=
null
)
Properties
application
Id
Link copied to clipboard
@
SerialName
(
value
=
"application_id"
)
val
applicationId
:
String
?
=
null
channel
Id
Link copied to clipboard
@
SerialName
(
value
=
"channel_id"
)
val
channelId
:
String
default
Avatar
Hash
Link copied to clipboard
@
SerialName
(
value
=
"avatar"
)
val
defaultAvatarHash
:
String
?
default
Name
Link copied to clipboard
@
SerialName
(
value
=
"name"
)
val
defaultName
:
String
?
guild
Id
Link copied to clipboard
@
SerialName
(
value
=
"guild_id"
)
val
guildId
:
String
?
=
null
id
Link copied to clipboard
@
SerialName
(
value
=
"id"
)
val
id
:
String
token
Link copied to clipboard
@
SerialName
(
value
=
"token"
)
val
token
:
String
?
=
null
type
Link copied to clipboard
@
SerialName
(
value
=
"type"
)
val
type
:
WebhookType
user
Link copied to clipboard
@
SerialName
(
value
=
"user"
)
val
user
:
User
?
=
null