From 5cdd1c9082779101a056dc34d6a16c35dfd2cf79 Mon Sep 17 00:00:00 2001 From: Fernando Date: Thu, 26 Dec 2024 11:49:09 -0300 Subject: [PATCH] fix --- Discord/discordIndex.js | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/Discord/discordIndex.js b/Discord/discordIndex.js index 244d7e2..ac3015f 100644 --- a/Discord/discordIndex.js +++ b/Discord/discordIndex.js @@ -370,6 +370,19 @@ module.exports = (Discord2, client) => { }, 400000) } + setTimeout(async () => { + try { + let discordChannelDelete = await DiscordServer.channels.cache.get(findChannel.id) + if (discordChannelDelete) { + await discordChannelDelete.delete() + const userD = await client.users.fetch(params.userID) + if (userD) { + userD.send(`O seu ultimo carrinho no servidor ${DiscordServer.name} foi expirado!`) + } + } + + } catch (error) { } + }, 600000) } else { return interaction.editReply({ content: '⚠ | Não foi possivel criar o carrinho tente novamente!', ephemeral: true }) } @@ -2545,20 +2558,6 @@ module.exports.sendProductPayment = async (params, id, type) => { } },5000) - }else{ - setTimeout(async () => { - try { - let discordChannelDelete = await DiscordServer.channels.cache.get(findChannel.id) - if (discordChannelDelete) { - await discordChannelDelete.delete() - const userD = await client.users.fetch(params.userID) - if (userD) { - userD.send(`O seu ultimo carrinho no servidor ${DiscordServer.name} foi expirado!`) - } - } - - } catch (error) { } - }, 600000) } } else {