component events

This commit is contained in:
MapleLeaf
2021-12-28 21:17:50 -06:00
parent 0f98d59618
commit b155cfd526
17 changed files with 370 additions and 204 deletions

View File

@@ -15,7 +15,7 @@ export function FruitSelect() {
<Select
placeholder="choose a fruit"
value={value}
onSelectValue={setValue}
onChangeValue={setValue}
>
<Option value="🍎" />
<Option value="🍌" />

View File

@@ -67,12 +67,16 @@ createCommandHandler(client, [
run: (interaction) => {
reacord.reply(
interaction,
<Button
label="clic"
onClick={() => {
reacord.ephemeralReply(interaction, "you clic")
}}
/>,
<>
<Button
label="public clic"
onClick={() => reacord.reply(interaction, "you clic")}
/>
<Button
label="clic"
onClick={(event) => event.ephemeralReply("you clic")}
/>
</>,
)
},
},