Spaces:
Runtime error
Runtime error
Update index.js
Browse files
index.js
CHANGED
|
@@ -578,21 +578,7 @@ client.on('interactionCreate', async (interaction) => {
|
|
| 578 |
}
|
| 579 |
} catch (e) {}
|
| 580 |
}
|
| 581 |
-
|
| 582 |
-
|
| 583 |
-
async function safeReply(interaction, options) {
|
| 584 |
-
try {
|
| 585 |
-
if (interaction.deferred || interaction.replied) {
|
| 586 |
-
return await interaction.editReply(options);
|
| 587 |
-
} else {
|
| 588 |
-
return await interaction.reply(options);
|
| 589 |
-
}
|
| 590 |
-
} catch (e) {
|
| 591 |
-
console.error(`[!] Reply Failed: ${e.message}`);
|
| 592 |
-
}
|
| 593 |
-
}
|
| 594 |
-
|
| 595 |
-
if (interaction.isChatInputCommand()) {
|
| 596 |
logTransaction(client, interaction.commandName, interaction.user, interaction.guild, interaction.member);
|
| 597 |
|
| 598 |
if (interaction.commandName === 'ping') {
|
|
|
|
| 578 |
}
|
| 579 |
} catch (e) {}
|
| 580 |
}
|
| 581 |
+
if (interaction.isChatInputCommand()) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 582 |
logTransaction(client, interaction.commandName, interaction.user, interaction.guild, interaction.member);
|
| 583 |
|
| 584 |
if (interaction.commandName === 'ping') {
|