mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 08:34:15 +02:00
fix(arabot): change reply to editReply in deferred replies
This commit is contained in:
parent
26ea2ba996
commit
c55d5ffe93
@ -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
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user