Updated messageCreate event

This commit is contained in:
Christer Warén 2021-09-07 15:36:33 +03:00
parent 523c94aafb
commit d0c10018f3

View File

@ -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({