mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 22:15:37 +00:00
Move deferring into the specific interactions where required. Makes especially validation warnings ephemeral.
This commit is contained in:
1 parent
a7aefd085f
commit
f3329fceee
36 files changed
+164
-175
No files matched your search
@@ -134,7 +134,7 @@ class RemoveCommand extends BaseSlashCommandInteraction {
|
||||
logger.debug('Start position is higher than end position.');
|
||||
|
||||
logger.debug('Responding with warning embed.');
|
||||
await interaction.editReply({
|
||||
await interaction.reply({
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setDescription(
|
||||
@@ -146,7 +146,8 @@ class RemoveCommand extends BaseSlashCommandInteraction {
|
||||
})
|
||||
)
|
||||
.setColor(this.embedOptions.colors.warning)
|
||||
]
|
||||
],
|
||||
ephemeral: true
|
||||
});
|
||||
return Promise.resolve();
|
||||
}
|
||||
@@ -208,7 +209,7 @@ class RemoveCommand extends BaseSlashCommandInteraction {
|
||||
logger.debug(`Removed track '${removedTrack.url}' from queue.`);
|
||||
|
||||
logger.debug('Responding with success embed.');
|
||||
await interaction.editReply({
|
||||
await interaction.reply({
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setAuthor(this.getEmbedUserAuthor(interaction))
|
||||
@@ -232,7 +233,7 @@ class RemoveCommand extends BaseSlashCommandInteraction {
|
||||
translator: TFunction
|
||||
) {
|
||||
logger.debug('Responding with warning embed.');
|
||||
await interaction.editReply({
|
||||
await interaction.reply({
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setAuthor(this.getEmbedUserAuthor(interaction))
|
||||
@@ -242,7 +243,8 @@ class RemoveCommand extends BaseSlashCommandInteraction {
|
||||
})
|
||||
)
|
||||
.setColor(this.embedOptions.colors.warning)
|
||||
]
|
||||
],
|
||||
ephemeral: true
|
||||
});
|
||||
return Promise.resolve();
|
||||
}
|
||||
@@ -254,7 +256,7 @@ class RemoveCommand extends BaseSlashCommandInteraction {
|
||||
translator: TFunction
|
||||
) {
|
||||
logger.debug('Responding with success embed.');
|
||||
await interaction.editReply({
|
||||
await interaction.reply({
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setAuthor(this.getEmbedUserAuthor(interaction))
|
||||
@@ -280,7 +282,7 @@ class RemoveCommand extends BaseSlashCommandInteraction {
|
||||
logger.debug('Specified track position is higher than total tracks.');
|
||||
|
||||
logger.debug('Responding with warning embed.');
|
||||
await interaction.editReply({
|
||||
await interaction.reply({
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setDescription(
|
||||
@@ -292,7 +294,8 @@ class RemoveCommand extends BaseSlashCommandInteraction {
|
||||
})
|
||||
)
|
||||
.setColor(this.embedOptions.colors.warning)
|
||||
]
|
||||
],
|
||||
ephemeral: true
|
||||
});
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user