UNPKG

@tycrek/discord-hookr

Version:

A lightweight and easy way to send webhooks to Discord, without the added baggage of a full API client.

10 lines (9 loc) 437 B
import { Payload } from './ApiTypes'; /** * Sends a file to a webhook */ export declare const sendFile: (hookUrl: string, filepath: string, username?: string, avatarUrl?: string) => Promise<import("axios").AxiosResponse<any, any>>; /** * Sends a payload to a webhook (either text, embeds, or both) */ export declare const sendWebhook: (hookUrl: string, payload: Payload) => Promise<import("axios").AxiosResponse<any, any>>;