add channel renderer + try to simplify adapter generics

This commit is contained in:
MapleLeaf
2021-12-27 19:22:21 -06:00
parent 6bfb1ab6de
commit 3682f67bfe
13 changed files with 143 additions and 43 deletions

View File

@@ -20,7 +20,7 @@ createCommandHandler(client, [
name: "counter",
description: "shows a counter button",
run: (interaction) => {
const reply = reacord.createCommandReply(interaction)
const reply = reacord.reply(interaction)
reply.render(<Counter onDeactivate={() => reply.destroy()} />)
},
},
@@ -28,7 +28,7 @@ createCommandHandler(client, [
name: "select",
description: "shows a select",
run: (interaction) => {
reacord.createCommandReply(interaction).render(<FruitSelect />)
reacord.reply(interaction).render(<FruitSelect />)
},
},
])