mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 17:00:08 +00:00
fix send a message with a webhook test
Waits for server confirmation of message send before response, and returns the created message body (defaults to false; when false a message that is not saved does not return an error)
This commit is contained in:
@@ -9,6 +9,7 @@ Deno.test("[webhooks] Send a message with a webhook", async (t) => {
|
||||
assertExists(webhook.token);
|
||||
const message = await bot.helpers.sendWebhook(webhook.id, webhook.token, {
|
||||
content: "discordeno is best lib",
|
||||
wait: true,
|
||||
});
|
||||
|
||||
assertExists(message);
|
||||
|
||||
Reference in New Issue
Block a user