From f998a0e09aea94cb7419f9d8626cc95b9e51731b Mon Sep 17 00:00:00 2001
From: Domin-MND <69919939+domin-mnd@users.noreply.github.com>
Date: Mon, 23 Oct 2023 12:24:24 +0300
Subject: [PATCH] fix djs manual test
---
.../reacord/scripts/discordjs-manual-test.tsx | 22 ++++++++++++-------
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git a/packages/reacord/scripts/discordjs-manual-test.tsx b/packages/reacord/scripts/discordjs-manual-test.tsx
index 3a06058..2a3fbe0 100644
--- a/packages/reacord/scripts/discordjs-manual-test.tsx
+++ b/packages/reacord/scripts/discordjs-manual-test.tsx
@@ -50,7 +50,7 @@ const createTest = async (
}
await createTest("basic", (channel) => {
- reacord.send(channel.id, "Hello, world!")
+ reacord.createChannelMessage(channel, {}, "Hello, world!")
})
await createTest("counter", (channel) => {
@@ -73,7 +73,7 @@ await createTest("counter", (channel) => {
>
)
}
- reacord.send(channel.id, )
+ reacord.createChannelMessage(channel, {}, )
})
await createTest("select", (channel) => {
@@ -102,8 +102,9 @@ await createTest("select", (channel) => {
)
}
- const instance = reacord.send(
- channel.id,
+ const instance = reacord.createChannelMessage(
+ channel,
+ {},
{
instance.render(`you chose ${value}`)
@@ -114,8 +115,9 @@ await createTest("select", (channel) => {
})
await createTest("ephemeral button", (channel) => {
- reacord.send(
- channel.id,
+ reacord.createChannelMessage(
+ channel,
+ {},
<>