import { WebhookManager } from "https://deno.land/x/higa@0.1.2/deno/client/managers/WebhookManager.ts";
Constructors
Properties
readonly
version: APIVersionsAPI Version
Methods
createWebhook(): Promise<Webhook>
channelId: string,
name: string,
avatar?: any,
Creates a webhook in the specified channel
deleteWebhook(webhookId: string): Promise<void>
Deletes a webhook
deleteWebhookMessage(): Promise<void>
deleteWebhookWithToken(webhookId: string, webhookToken: string): Promise<void>
Deletes a webhook with the given ID and token
editWebhookMessage(): Promise<Message>
webhookId: string,
webhookToken: string,
messageId: string,
options: ExecuteWebhookOptions,
params?: ExecuteWebhookParams,
Edit a webhook message
executeWebhook(): Promise<Message>
webhookId: string,
webhookToken: string,
options: ExecuteWebhookOptions,
params?: ExecuteWebhookParams,
Executes a webhook
getChannelWebhooks(channelId: string): Promise<Webhook[]>
Get all webhooks in a channel
getGuilWebhooks(guildId: string): Promise<Webhook[]>
Gets all the webhooks in a guild.
getWebhook(webhookId: string): Promise<Webhook>
Gets a webhook by its ID
getWebhookMessage(): Promise<Message>
Get a webhook message
getWebhookWithToken(webhookId: string, webhookToken: string): Promise<Webhook>
Gets a webhook with a token.
modifyWebhook(webhookId: string, options: ModifyWebhookOptions): Promise<Webhook>
Modify a webhook
modifyWebhookWithToken(): Promise<Webhook>
webhookId: string,
webhookToken: string,
options: ModifyWebhookOptions,
Modify a webhook with a token.