fix(arabot): change reply to editReply in deferred replies

This commit is contained in:
smyalygames 2023-03-01 11:09:17 +00:00
parent 26ea2ba996
commit c55d5ffe93
4 changed files with 4 additions and 5 deletions

View File

@ -93,7 +93,7 @@ export class TempBanCommand extends Command {
const ban = await this.ban(user.id, mod.user.id, time, reason, guild);
await interaction.reply({ content: ban.message });
await interaction.editReply({ content: ban.message });
}
// Non Application Command method of banning a user

View File

@ -78,7 +78,7 @@ export class UnbanCommand extends Command {
const unban = await this.unban(user.id, mod.user.id, guild);
await interaction.reply({ content: unban.message });
await interaction.editReply({ content: unban.message });
}
// Non Application Command method of banning a user

View File

@ -316,9 +316,8 @@ export class RestrictCommand extends Command {
const info = await restrictRun(user?.id, mod.user.id, reason, guild);
await interaction.reply({
await interaction.editReply({
content: info.message,
fetchReply: true,
});
}

View File

@ -72,7 +72,7 @@ export class RestrictToleranceCommand extends Command {
const info = await restrictRun(user?.id, mod.user.id, reason, guild, true);
await interaction.reply({
await interaction.editReply({
content: info.message,
});
}