mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-17 03:38:17 +00:00
docs(handlers): add jsdoc comment block (#313)
* docs(handlers): add jsdoc comment block * style: format files
This commit is contained in:
@@ -55,6 +55,7 @@ export async function createWebhook(
|
||||
) as Promise<WebhookPayload>;
|
||||
}
|
||||
|
||||
/** Execute a webhook with webhook ID and webhook token */
|
||||
export async function executeWebhook(
|
||||
webhookID: string,
|
||||
webhookToken: string,
|
||||
@@ -113,6 +114,7 @@ export async function executeWebhook(
|
||||
return structures.createMessage(result as MessageCreateOptions);
|
||||
}
|
||||
|
||||
/** Returns the new webhook object for the given id. */
|
||||
export function getWebhook(webhookID: string) {
|
||||
return RequestManager.get(endpoints.WEBHOOK_ID(webhookID));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user