1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-12-27 04:15:38 -05:00

Improve the response time

This commit is contained in:
toast-ts 2024-05-01 17:28:12 +10:00
parent 3da2dbcb25
commit 841ea133f2

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)
]);
} }