slightly nicer render call
This commit is contained in:
@@ -20,9 +20,8 @@ const commands: Command[] = [
|
|||||||
name: "counter",
|
name: "counter",
|
||||||
description: "shows a counter button",
|
description: "shows a counter button",
|
||||||
run: async (interaction) => {
|
run: async (interaction) => {
|
||||||
const root = createRoot(interaction.channel!)
|
|
||||||
await interaction.reply("a")
|
await interaction.reply("a")
|
||||||
await root.render(<Counter />)
|
await createRoot(interaction.channel!).render(<Counter />)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user