Object representing received webhook data. This object is NOT to be used to send data to webhooks. That would be WebhookClient

Hierarchy

Constructors

Properties

_createdAt: number

The date in which this webhook was created

_deletedAt: null | number = null

The date this webhook was deleted if it was deleted

authorID: string

The user who created this webhook

channelID: string

The ID of the channel this webhook belongs to

client: Client
id: string

Identifier of this structrure

name: string

The username belonging to this webhook

Bare data of this structure

serverId: string

The ID of the server this webhook belongs to

token: null | string

The token of this webhook

Accessors

  • get deletedAt(): null | Date
  • Returns the deletion date of this webhook if it was deleted

    Returns null | Date

    The deletion date of this webhook if it was deleted, otherwise null

Methods

Generated using TypeDoc