mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 16:30:58 -05:00
Improve the response time
This commit is contained in:
parent
bf1ec8c48a
commit
4dc9ca3e9c
@ -21,6 +21,8 @@ export default async(client:TClient, interaction: Discord.ChatInputCommandIntera
|
||||
if (!GuildMember && !['unban', 'ban'].includes(type)) return interaction.reply(`You cannot ${type} someone who is not in the server.`);
|
||||
if (User.bot) return interaction.reply(`You cannot ${type} a bot!`);
|
||||
|
||||
await interaction.deferReply({ephemeral: isInBKL});
|
||||
await client.punishments.punishmentAdd(type, {time, interaction}, interaction.user.id, reason, User, GuildMember);
|
||||
await Promise.all([
|
||||
interaction.deferReply({ephemeral: isInBKL}),
|
||||
client.punishments.punishmentAdd(type, {time, interaction}, interaction.user.id, reason, User, GuildMember)
|
||||
]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user