almost the last push for v2.1.0

This commit is contained in:
DJj123dj
2022-06-26 20:25:33 +02:00
parent a49b53e2d6
commit a6e107c12a
16 changed files with 225 additions and 30 deletions
+18 -2
View File
@@ -223,7 +223,23 @@ module.exports = () => {
})
interaction.channel.permissionOverwrites.set(permissionsArray)
//getID & send DM
interaction.channel.messages.fetchPinned().then(msglist => {
var firstmsg = msglist.last()
if (firstmsg == undefined || firstmsg.author.id != client.user.id) return false
const id = firstmsg.embeds[0].author.name
if (!id) return false
try{
if (config.system.enable_DM_Messages){
interaction.member.send({embeds:[bot.errorLog.custom(l.messages.reopenTicketDmTitle,l.messages.reopenTicketDmDescription,":ticket:",config.main_color)]})
}
}
catch{log("system","can't send DM to member, member doesn't allow dm's")}
})
})
}