component events
This commit is contained in:
@@ -15,7 +15,7 @@ export function FruitSelect() {
|
||||
<Select
|
||||
placeholder="choose a fruit"
|
||||
value={value}
|
||||
onSelectValue={setValue}
|
||||
onChangeValue={setValue}
|
||||
>
|
||||
<Option value="🍎" />
|
||||
<Option value="🍌" />
|
||||
|
||||
@@ -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")}
|
||||
/>
|
||||
</>,
|
||||
)
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user