preserve order: finish bridge before command reply

This commit is contained in:
Cadence Ember 2023-08-25 16:03:43 +12:00
parent 69a01a0608
commit 9f717dc24f

View file

@ -159,10 +159,8 @@ module.exports = {
const guild = client.guilds.get(channel.guild_id) const guild = client.guilds.get(channel.guild_id)
if (!isGuildAllowed(guild.id)) return if (!isGuildAllowed(guild.id)) return
await Promise.all([ await sendMessage.sendMessage(message, guild),
sendMessage.sendMessage(message, guild), await discordCommandHandler.execute(message, channel, guild)
discordCommandHandler.execute(message, channel, guild)
])
}, },
/** /**