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, + {}, <>