@@ -73,7 +73,7 @@ class Webhook {
|
||||
|
||||
if ('channel_id' in data) {
|
||||
/**
|
||||
* The channel the webhook belongs to
|
||||
* The id of the channel the webhook belongs to
|
||||
* @type {Snowflake}
|
||||
*/
|
||||
this.channelId = data.channel_id;
|
||||
@@ -110,6 +110,15 @@ class Webhook {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The channel the webhook belongs to
|
||||
* @type {?(TextChannel|VoiceChannel|NewsChannel|ForumChannel)}
|
||||
* @readonly
|
||||
*/
|
||||
get channel() {
|
||||
return this.client.channels.resolve(this.channelId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Options that can be passed into send.
|
||||
* @typedef {BaseMessageOptions} WebhookMessageOptions
|
||||
|
Reference in New Issue
Block a user