Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Webhook

Hierarchy

Index

Constructors

constructor

Properties

avatar

avatar: string | null = null

The avatar used for this webhook

channelID

channelID: string

The channelID this webhook is for

Readonly client

deleted

deleted: boolean = false

If the webhook has been deleted

guildID

guildID: string | null

The guildID this webhook is for

id

id: string

The id of the webhook

name

name: string | null = null

The name of the webhook

token

token: string | null

The token for this webhook

type

type: WebhookType

The type of the webhook

user

user: User<Client | WebhookClient> | null = null

The "user" of the webhook displayed on the webhook messages

Accessors

channel

createdAt

  • get createdAt(): Date

createdTimestamp

  • get createdTimestamp(): number

guild

  • get guild(): Guild | null

Methods

_patch

  • _patch(data: APIWebhookData): this

clone

  • clone(): this

delete

  • delete(): Promise<void>

modify

  • modify(__namedParameters: { avatar: undefined | string; channelID: undefined | string; name: undefined | string }): Promise<this>
  • Modifies the webhook properties

    Parameters

    • __namedParameters: { avatar: undefined | string; channelID: undefined | string; name: undefined | string }
      • avatar: undefined | string
      • channelID: undefined | string
      • name: undefined | string

    Returns Promise<this>

send

toJSON

  • toJSON(): Record<string, any>

valueOf

  • valueOf(): string

Static fetch

Generated using TypeDoc