slightly nicer render call

This commit is contained in:
MapleLeaf
2021-12-22 22:06:31 -06:00
parent dffc8b574d
commit 4d89795d13

View File

@@ -20,9 +20,8 @@ const commands: Command[] = [
name: "counter",
description: "shows a counter button",
run: async (interaction) => {
const root = createRoot(interaction.channel!)
await interaction.reply("a")
await root.render(<Counter />)
await createRoot(interaction.channel!).render(<Counter />)
},
},
]