Base
↳ Webhook
client
, data
): Webhook
Initializes a new instance of the class.
Name | Type | Description |
---|---|---|
client | YorClient | The client instance. |
data | APIWebhook | The webhook data. |
Webhook
Optional
avatar: string
YorClient
Optional
creator: User
string
Readonly
raw: APIWebhook
Optional
token: string
WebhookType
options?
): undefined
| string
Returns the URL of the avatar image for this user.
Name | Type | Description |
---|---|---|
options? | ImageURLOptions | Optional parameters for the image URL. |
undefined
| string
The URL of the avatar image, or undefined if there is no avatar.
false
| WebhookClient
<{ id
: string
; token
: string
}>
Creates a client if the call is incoming and returns a new WebhookClient instance.
false
| WebhookClient
<{ id
: string
; token
: string
}>
A new WebhookClient instance.
Date
Returns the creation date of the object.
Date
The creation date of the object.
number
Returns the created timestamp as a Date object.
number
The created timestamp.
boolean
Whether this webhook is created by an application.
boolean
boolean
Whether or not this webhook is a channel follower webhook.
boolean
boolean
Whether or not this webhook is an incoming webhook.
boolean
boolean
Whether this webhook is created by a user.
boolean