-
Notifications
You must be signed in to change notification settings - Fork 0
/
holder.txt
34 lines (30 loc) · 956 Bytes
/
holder.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// console.log("Interaction HEREREH RHEH RER: ", interaction);
// const question = interaction.options.getString("question");
// await api.ensureAuth();
// const response = await api.sendMessage(question);
// console.log(response);
const filter = (i) => {
// i.deferUpdate();
console.log("Reached a filter ", i);
return true;
};
const row = new ActionRowBuilder().addComponents(
new ButtonBuilder()
.setCustomId("primary")
.setLabel("Click me!")
.setStyle(ButtonStyle.Primary)
);
const sentMessage = await interaction.editReply({
content: "I think you should,",
components: [row],
});
sentMessage
.awaitMessageComponent({
filter,
componentType: ComponentType.Button,
time: 60000,
})
.then((interaction) =>
interaction.editReply(`You selected ${interaction.values.join(", ")}!`)
)
.catch((err) => console.log(`No interactions were collected.`));