support ephemeral command replies with missing pieces

This commit is contained in:
MapleLeaf
2021-12-28 13:59:53 -06:00
parent d89db1ceeb
commit 0f98d59618
6 changed files with 70 additions and 1 deletions

View File

@@ -61,6 +61,21 @@ createCommandHandler(client, [
reacord.reply(interaction, <FruitSelect />)
},
},
{
name: "ephemeral-button",
description: "button which shows ephemeral messages",
run: (interaction) => {
reacord.reply(
interaction,
<Button
label="clic"
onClick={() => {
reacord.ephemeralReply(interaction, "you clic")
}}
/>,
)
},
},
])
await client.login(process.env.TEST_BOT_TOKEN)