Search
Preparing search index...
The search index is not available
Detritus Client
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Detritus Client
structures/webhook
Webhook
Class Webhook
Webhook Structure
Hierarchy
BaseStructure
Webhook
Index
Constructors
constructor
Properties
_keys
application
Id
avatar
channel
Id
client
discriminator
guild
Id
id
name
source
Channel
source
Guild
token
type
user
Accessors
avatar
Url
channel
created
At
created
AtUnix
default
Avatar
Url
guild
is
Clone
jump
Link
mention
shard
Id
Methods
[custom]
_get
From
Snake
_set
From
Snake
avatar
Url
Format
clone
create
Message
delete
delete
Message
difference
differences
differences
Between
edit
edit
Message
execute
fetch
Message
has
Difference
has
Differences
has
Differences
Between
merge
merge
Value
toJSON
to
String
Constructors
constructor
new
Webhook
(
client
:
ShardClient
, data
?:
BaseStructureData
, isClone
?:
boolean
)
:
Webhook
Parameters
client:
ShardClient
Optional
data:
BaseStructureData
Optional
isClone:
boolean
Returns
Webhook
Properties
Readonly
_keys
_keys
:
BaseSet
<
string
>
= ...
application
Id
application
Id
:
null
|
string
= null
avatar
avatar
:
null
|
string
= null
channel
Id
channel
Id
:
string
= ''
Readonly
client
client
:
ShardClient
discriminator
discriminator
:
string
= '0000'
guild
Id
guild
Id
:
string
= ''
id
id
:
string
= ''
name
name
:
string
= ''
Optional
source
Channel
source
Channel
:
Channel
Optional
source
Guild
source
Guild
:
BaseGuild
Optional
token
token
:
null
|
string
type
type
:
WebhookTypes
= ...
Optional
user
user
:
null
|
User
Accessors
avatar
Url
get
avatarUrl
(
)
:
string
Returns
string
channel
get
channel
(
)
:
null
|
Channel
Returns
null
|
Channel
created
At
get
createdAt
(
)
:
Date
Returns
Date
created
AtUnix
get
createdAtUnix
(
)
:
number
Returns
number
default
Avatar
Url
get
defaultAvatarUrl
(
)
:
string
Returns
string
guild
get
guild
(
)
:
null
|
Guild
Returns
null
|
Guild
is
Clone
get
isClone
(
)
:
boolean
Returns
boolean
jump
Link
get
jumpLink
(
)
:
string
Returns
string
mention
get
mention
(
)
:
string
Returns
string
shard
Id
get
shardId
(
)
:
number
Returns
number
Methods
[custom]
[custom]
(
)
:
object
Returns
object
_get
From
Snake
_get
From
Snake
(
key
:
string
)
:
any
Parameters
key:
string
Returns
any
_set
From
Snake
_set
From
Snake
(
key
:
string
, value
:
any
)
:
any
Parameters
key:
string
value:
any
Returns
any
avatar
Url
Format
avatar
Url
Format
(
format
?:
string
, query
?:
UrlQuery
)
:
string
Parameters
Optional
format:
string
Optional
query:
UrlQuery
Returns
string
clone
clone
(
)
:
Webhook
Returns
Webhook
create
Message
create
Message
(
options
:
ExecuteWebhook
, compatibleType
?:
string
)
:
Promise
<
null
|
Message
>
Parameters
options:
ExecuteWebhook
Optional
compatibleType:
string
Returns
Promise
<
null
|
Message
>
delete
delete
(
options
?:
DeleteWebhook
)
:
Promise
<
any
>
Parameters
options:
DeleteWebhook
= {}
Returns
Promise
<
any
>
delete
Message
delete
Message
(
messageId
:
string
)
:
Promise
<
any
>
Parameters
messageId:
string
Returns
Promise
<
any
>
difference
difference
(
key
:
string
, value
:
any
)
:
[
boolean
,
any
]
Parameters
key:
string
value:
any
Returns
[
boolean
,
any
]
differences
differences
(
data
?:
BaseStructureData
)
:
null
|
object
Parameters
Optional
data:
BaseStructureData
Returns
null
|
object
differences
Between
differences
Between
(
structure
:
Structure
)
:
null
|
object
Parameters
structure:
Structure
Returns
null
|
object
edit
edit
(
options
?:
EditWebhook
)
:
Promise
<
Webhook
>
Parameters
options:
EditWebhook
= {}
Returns
Promise
<
Webhook
>
edit
Message
edit
Message
(
messageId
:
string
, options
?:
EditWebhookTokenMessage
)
:
Promise
<
Message
>
Parameters
messageId:
string
options:
EditWebhookTokenMessage
= {}
Returns
Promise
<
Message
>
execute
execute
(
options
:
ExecuteWebhook
, compatibleType
?:
string
)
:
Promise
<
null
|
Message
>
Parameters
options:
ExecuteWebhook
Optional
compatibleType:
string
Returns
Promise
<
null
|
Message
>
fetch
Message
fetch
Message
(
messageId
:
string
)
:
Promise
<
Message
>
Parameters
messageId:
string
Returns
Promise
<
Message
>
has
Difference
has
Difference
(
key
:
string
, value
:
any
)
:
boolean
Parameters
key:
string
value:
any
Returns
boolean
has
Differences
has
Differences
(
data
?:
BaseStructureData
)
:
boolean
Parameters
Optional
data:
BaseStructureData
Returns
boolean
has
Differences
Between
has
Differences
Between
(
structure
:
Structure
)
:
boolean
Parameters
structure:
Structure
Returns
boolean
merge
merge
(
data
?:
BaseStructureData
)
:
void
Parameters
Optional
data:
BaseStructureData
Returns
void
merge
Value
merge
Value
(
key
:
string
, value
:
any
)
:
void
Parameters
key:
string
value:
any
Returns
void
toJSON
toJSON
(
)
:
object
Returns
object
to
String
to
String
(
)
:
string
Returns
string
Exports
structures/webhook
Webhook
constructor
_keys
application
Id
avatar
channel
Id
client
discriminator
guild
Id
id
name
source
Channel
source
Guild
token
type
user
avatar
Url
channel
created
At
created
AtUnix
default
Avatar
Url
guild
is
Clone
jump
Link
mention
shard
Id
[custom]
_get
From
Snake
_set
From
Snake
avatar
Url
Format
clone
create
Message
delete
delete
Message
difference
differences
differences
Between
edit
edit
Message
execute
fetch
Message
has
Difference
has
Differences
has
Differences
Between
merge
merge
Value
toJSON
to
String
Generated using
TypeDoc
Webhook Structure