UNPKG

@confis/discordapiwrapper

Version:

A fast and lightweight discord api wrapper.

20 lines (19 loc) 625 B
import { Client, Message, WebhookContentOptions } from "../index"; import { Base } from "./Base"; /** * Represents a webhook client. */ export declare class WebhookClient extends Base { readonly id: string; readonly token: string; constructor(options: { id: string; token: string; }, client: Client); /** * Sends a message to the webhook. * @param content The content of the message. Can be a string or a WebhookContentOptions object. * @returns A Promise that resolves with the sent message. */ send(content: string | WebhookContentOptions): Promise<Message>; }