Webhook
Implementation of the Discord Webhook class in Luau
https://discord.com/developers/docs/resources/webhook#webhook-object
Properties
id
The unique identifier for this webhook.
type
The type of webhook, indicating its source and behavior.
guildId
The ID of the guild this webhook belongs to, if it’s a server webhook.
channelId
The ID of the channel this webhook is associated with.
user
The user who created this webhook.
name
The name of the webhook.
avatar
The avatar hash of the webhook.
token
The token used to authenticate webhook requests.
applicationId
The ID of the application that created this webhook.
url
The URL used to execute this webhook.
Methods
The Webhook instance has no set methods!
Functions
sync
Webhook . sync () -> ()
self: Webhook
webhookData: apiTypes.WebhookObject
Responsible for syncing data to this webhook object. This is typically called by the API when this object is created or updated.
new
Webhook . new () -> ()
webhookData: apiTypes.WebhookObject
Responsible for constructing this class.