Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-Santana-j committed Aug 9, 2024
1 parent 950dfc3 commit d72ad72
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 deletions.
15 changes: 3 additions & 12 deletions Discord/createProductMessageEmbend.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,9 @@ module.exports = async (Discord2, client, data) => {
}
let backGroundLink = ''
let logoLink = ''
if (`logoLink` in produto) {
logoLink = produto.logoLink
}else{
logoLink = produto.productLogo ? functions.discordDB(produto.productLogo,client,Discord) : ``
produto.logoLink = logoLink
}
if (`backGroundLink` in produto) {
backGroundLink = produto.backGroundLink
}else{
backGroundLink = produto.backGround ? functions.discordDB(produto.backGround,client,Discord) : ``
produto.backGroundLink = backGroundLink
}
logoLink = produto.productLogo ? await functions.discordDB(produto.productLogo,client,Discord) : ``
backGroundLink = produto.backGround ? await functions.discordDB(produto.backGround,client,Discord) : ``

let embed = await DiscordChannel.send({
embeds: [
new Discord.EmbedBuilder()
Expand Down
4 changes: 3 additions & 1 deletion functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,9 @@ module.exports = {
let dbres = await dbBannerDiscordChannel.send({
files: [attachment]
})
return dbres
let linkImage = await dbres.attachments.first()

return linkImage.url
}

}
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,6 @@ app.post('/accout/delete', async (req, res) => {
serverID: req.body.serverID
}
})
console.log(prod);
} catch (error) {

}
Expand Down Expand Up @@ -1194,7 +1193,6 @@ app.post('/ticket/motivoUPD', async (req, res) => {
db.update('servers', body.serverID, {
ticketOptions: ticketOptions
})
console.log(ticketOptions.channel, ticketOptions);
require('./Discord/createTicketMensage.js')(client, ticketOptions.channel, body.serverID)
if (!res.headersSent) {
res.status(200).json({ success: true, data: 'Motivo deletado!' })
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d72ad72

Please sign in to comment.