Preparing search index...
The search index is not available
@elara-services/webhooks
@elara-services/webhooks
Webhook
Class Webhook
Hierarchy
Webhook
Index
Constructors
constructor
Properties
client
Id
Methods
fetch
fetch
Channel
fetch
Webhook
Info
send
Constructors
constructor
new
Webhook
(
botToken
)
:
Webhook
Parameters
botToken
:
string
Returns
Webhook
Properties
Private
client
Id
client
Id
:
undefined
|
string
Methods
fetch
fetch
(
channelId
)
:
Promise
<
null
|
{
id
:
any
;
token
:
any
;
}
>
Parameters
channelId
:
string
Returns
Promise
<
null
|
{
id
:
any
;
token
:
any
;
}
>
Private
fetch
Channel
fetch
Channel
(
channelId
)
:
Promise
<
null
|
CachedChannel
>
Parameters
channelId
:
string
Returns
Promise
<
null
|
CachedChannel
>
fetch
Webhook
Info
fetch
Webhook
Info
(
opt
)
:
{
avatar_url
:
string
;
username
:
string
;
}
Parameters
opt
:
undefined
|
null
|
{
icon
?:
null
|
string
;
name
?:
null
|
string
;
}
Returns
{
avatar_url
:
string
;
username
:
string
;
}
avatar_
url
:
string
username
:
string
send
send
(
channelId
,
opt
,
queue
?
,
shouldTransformComponents
?
)
:
Promise
<
void
>
Parameters
channelId
:
string
opt
:
sendOptions
queue
:
boolean
= true
shouldTransformComponents
:
boolean
= true
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
client
Id
fetch
fetch
Channel
fetch
Webhook
Info
send
@elara-
services/webhooks
Discord
Webhook
Guild
Webhook
Webhook
Cached
Channel
Cached
Webhook
Discord
Webhook
Data
Discord
Webhook
Options
Queue
Options
Queue
Send
Options
send
Options
banned
Usernames
button
Ids
channels
debug
Logging
default
Webhook
Options
disabled
disabled
Logging
handlers
queue
queue
Interval
rest
setup
webhooks
_debug
add
To
Queue
create
Webhook
get
Components
log
run
send
Queue
start
Queue
throw
Error
Generated using
TypeDoc