Represents a webhook on Guilded.

Example

new Webhook(channel, rawWebhook);

Hierarchy

Constructors

Properties

channel: Channel

The channel the webhook belongs to.

channelId: string

The ID of the channel the webhook belongs to.

client: Client

The client the data model belongs to.

createdAt: Date

The date the webhook was created.

createdBy: string

The ID of the user that created the webhook.

deletedAt?: Date

The date the webhook was deleted.

id: string

The ID of the structure.

name: string

The name of the webhook.

The raw data of the webhook.

serverId: string

The ID of the server the webhook belongs to.

token?: string

The token of the webhook.

Accessors

Methods

  • Edit the webhook.

    Returns

    The edited webhook.

    Example

    webhook.edit('New name');
    

    Parameters

    • name: string

      The name of the webhook.

    • Optional channelId: string

      The ID of the channel the webhook belongs to.

    Returns Promise<Webhook>