💭Webhook
Last updated
Last updated
Property | Description | Type |
---|---|---|
Properties | Description | Type | Required? |
---|---|---|---|
Do not use this constructor unless you know what you're doing. This constructor is used to return you rawdata into component.
Edit the webhook.
Returns: Promise<Webhook>
Delete the webhook.
Returns: Promise<void>
Properties | Description | Type | Required? |
---|---|---|---|
_client
Client
id
ID of the webhook
String
guildID
ID of the guild the webhook got sent on.
String
channelID
ID of the channel the webhook got sent on.
String
username
Webhook username.
String
_createdAt
Timestamp (unix epoch time) of the webhook's creation.
Number
_deletedAt
Timestamp (unix epoch time) of the webhook's deletion.
Number|null
createdBy
ID of the webhook's owner.
String
token
Webhook token
String|null
createdAt
String representation of the _createdAt timestamp.
Date
deletedAt
String representation of the _deletedAt timestamp.
Date|null
rawData
raw data received from ws and converted to JSON
Object
true
client
Client
true
options
Edit options.
Object
true
options.name
New webhook's name.
String
true
options.channelID?
Move webhook to another channel.
String
false