Skip to content

Commit

Permalink
Merge pull request #48 from Fernando-Santana-j/development
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
Fernando-Santana-j authored Dec 26, 2024
2 parents a4cad36 + 5cdd1c9 commit f6dfd0d
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions Discord/discordIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit f6dfd0d

Please sign in to comment.