Make so it no say interaction failed
This commit is contained in:
parent
86d4bd910e
commit
025a4e5175
1 changed files with 2 additions and 0 deletions
2
index.js
2
index.js
|
@ -240,6 +240,7 @@ client.on("interactionCreate", (int) => {
|
||||||
}
|
}
|
||||||
} else if(int.isButton()){
|
} else if(int.isButton()){
|
||||||
if(int.customId.startsWith("cat")){
|
if(int.customId.startsWith("cat")){
|
||||||
|
int.update(int);
|
||||||
const row = new dc.MessageActionRow();
|
const row = new dc.MessageActionRow();
|
||||||
const btn = new dc.MessageButton();
|
const btn = new dc.MessageButton();
|
||||||
btn.setCustomId("cat-" + Math.round(Math.random()*99999));
|
btn.setCustomId("cat-" + Math.round(Math.random()*99999));
|
||||||
|
@ -250,6 +251,7 @@ client.on("interactionCreate", (int) => {
|
||||||
int.message.edit({embeds: [{title: "Meow", image: {url: res.data[0].url}, color: "#ec76fd"}], components: [row]});
|
int.message.edit({embeds: [{title: "Meow", image: {url: res.data[0].url}, color: "#ec76fd"}], components: [row]});
|
||||||
});
|
});
|
||||||
} else if(int.customId.startsWith("fox")){
|
} else if(int.customId.startsWith("fox")){
|
||||||
|
int.update(int);
|
||||||
const row = new dc.MessageActionRow();
|
const row = new dc.MessageActionRow();
|
||||||
const btn = new dc.MessageButton();
|
const btn = new dc.MessageButton();
|
||||||
btn.setCustomId("fox-" + Math.round(Math.random()*99999));
|
btn.setCustomId("fox-" + Math.round(Math.random()*99999));
|
||||||
|
|
Loading…
Reference in a new issue