import { Webhook } from "https://deno.land/x/harmony@v2.8.0/src/structures/webhook.ts";
Webhook follows different way of instantiation
Constructors
Properties
Methods
private
fromPayload(data: WebhookPayload): thisdelete(): Promise<boolean>
Deletes the Webhook.
deleteMessage(message: string | Message): Promise<Webhook>
edit(options: WebhookEditOptions): Promise<Webhook>
Edits the Webhook name, avatar, or channel (requires authentication).
editMessage(message: string | Message, data: { content?: string; embeds?: Embed[]; file?: MessageAttachment; allowed_mentions?: { parse?: string; roles?: string[]; users?: string[]; everyone?: boolean; }; }): Promise<Webhook>
send(text?: string | AllWebhookMessageOptions, option?: AllWebhookMessageOptions): Promise<Message>
Sends a Message through Webhook.