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:
lts20050703
2021-12-28 22:16:45 +07:00
parent 77d8f26e85
commit 7dab1be581

View File

@@ -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);