diff --git a/src/client/events/messageCreate.js b/src/client/events/messageCreate.js index ccd314f..0f8b9d6 100644 --- a/src/client/events/messageCreate.js +++ b/src/client/events/messageCreate.js @@ -41,8 +41,11 @@ module.exports = { let msg = await message.channel.send({ embeds: [embed] }); - setTimeout(function() { - msg.delete(); + setTimeout(async function() { + try { + await msg.delete(); + } catch (DiscordAPIError) { + } }, 30000); } catch (error) { message.reply({