1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 20:30:58 -05:00

Improve the response time

This commit is contained in:
toast-ts 2024-05-01 17:28:12 +10:00
parent bf1ec8c48a
commit 4dc9ca3e9c

View File

@ -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 (!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!`); if (User.bot) return interaction.reply(`You cannot ${type} a bot!`);
await interaction.deferReply({ephemeral: isInBKL}); await Promise.all([
await client.punishments.punishmentAdd(type, {time, interaction}, interaction.user.id, reason, User, GuildMember); interaction.deferReply({ephemeral: isInBKL}),
client.punishments.punishmentAdd(type, {time, interaction}, interaction.user.id, reason, User, GuildMember)
]);
} }