Class Webhook<Type>Internal

Type Parameters

Hierarchy

Constructors

  • Type Parameters

    Parameters

    • client: Client<true>
    • Optional data: RawWebhookData

    Returns Webhook<Type>

Properties

applicationId: Type extends Application
    ? string
    : null
avatar: null | string
channelId: string
client: Client<boolean>
guildId: string
id: string
name: string
owner: Type extends Incoming
    ? null | User | APIUser
    : User | APIUser
sourceChannel: Type extends ChannelFollower
    ? NewsChannel | APIPartialChannel
    : null
sourceGuild: Type extends ChannelFollower
    ? Guild | APIPartialGuild
    : null
token: Type extends Incoming
    ? string
    : Type extends ChannelFollower
        ? null
        : null | string
type: Type

Accessors

  • get createdAt(): Date
  • Returns Date

  • get createdTimestamp(): number
  • Returns number

  • get url(): string
  • Returns string

Methods

  • Parameters

    Returns null | string

  • Parameters

    • Optional reason: string

    Returns Promise<void>

  • Parameters

    • body: unknown

    Returns Promise<boolean>

Generated using TypeDoc