Skip to content

Commit

Permalink
Merge pull request #51 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 27, 2024
2 parents 25d9358 + 9ec581a commit a90b4cf
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions Discord/discordIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -2235,8 +2235,6 @@ module.exports.sendProductPayment = async (params, id, type) => {
const user = await client.users.fetch(params.userID);
let dono = DiscordServer.members.cache.get(DiscordServer.ownerId);
let arrayItensTxt = []
let numberProdsSingle = 0
let numberProdsNormal = 0
let productsName = []

let products = serverData.products
Expand Down Expand Up @@ -2552,17 +2550,11 @@ module.exports.sendProductPayment = async (params, id, type) => {
}
} catch (error) { }

if (numberProdsNormal == 0 && numberProdsSingle > 0) {
setTimeout(async () => {
try{
findChannel.delete()
} catch (error) {
console.log(error);

}
},5000)
}

setTimeout(async () => {
try{
findChannel.delete()
} catch (error) {}
},5000)
} else {
refound()
}
Expand Down

0 comments on commit a90b4cf

Please sign in to comment.