fixed some copy pasted issues
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
const {
|
||||
EmbedBuilder
|
||||
} = require("discord.js");
|
||||
|
||||
|
||||
function delay(ms) {
|
||||
return new Promise(
|
||||
resolve =>
|
||||
setTimeout(
|
||||
resolve,
|
||||
ms
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
module.exports = {
|
||||
name:
|
||||
"abort",
|
||||
|
||||
description:
|
||||
"abort it",
|
||||
|
||||
|
||||
async execute(
|
||||
interaction
|
||||
) {
|
||||
const embed =
|
||||
new EmbedBuilder()
|
||||
.setTitle(
|
||||
"Close"
|
||||
)
|
||||
.setDescription(
|
||||
"Closing..."
|
||||
);
|
||||
|
||||
|
||||
await interaction.update({
|
||||
embeds: [
|
||||
embed
|
||||
],
|
||||
|
||||
components: []
|
||||
});
|
||||
|
||||
|
||||
await delay(
|
||||
2000
|
||||
);
|
||||
|
||||
|
||||
try {
|
||||
await interaction.deleteReply();
|
||||
}
|
||||
|
||||
catch {
|
||||
// Ignore if already deleted/expired.
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ const {
|
||||
|
||||
module.exports = {
|
||||
name:
|
||||
"crumbBlackjackRunItBack",
|
||||
"crumbSaucerSlotsRunItBack",
|
||||
|
||||
async execute(
|
||||
interaction
|
||||
|
||||
Reference in New Issue
Block a user