This commit is contained in:
DJj123dj
2024-01-10 17:11:46 +01:00
parent 07e2a68d06
commit 9d96d11cd3
38 changed files with 191 additions and 122 deletions
+18
View File
@@ -113,6 +113,12 @@ module.exports = async (messages,guild,channel,user,reason) => {
if (!tc) return
tc.send({embeds:[errembed],files:[attachment]})
}
if (tsconfig.sendTranscripts.enableDM && user){
const embed = tsembeds.tsready(chName,chId,null,user)
try {
ticketopener.send({embeds:[embed],files:[attachment]})
}catch{}
}
return
}
@@ -167,6 +173,12 @@ module.exports = async (messages,guild,channel,user,reason) => {
if (!tc) return
tc.send({embeds:[errembed],files:[attachment]})
}
if (tsconfig.sendTranscripts.enableDM && user){
const embed = tsembeds.tsready(chName,chId,null,user)
try {
ticketopener.send({embeds:[embed],files:[attachment]})
}catch{}
}
}
}else{
const attachment = await require("./oldTranscript").createTranscript(messages,channel)
@@ -179,6 +191,12 @@ module.exports = async (messages,guild,channel,user,reason) => {
if (!tc) return
tc.send({embeds:[embed],files:[attachment]})
}
if (tsconfig.sendTranscripts.enableDM && user){
const embed = tsembeds.tsready(chName,chId,null,user)
try {
ticketopener.send({embeds:[embed],files:[attachment]})
}catch{}
}
}
}
asyncmanager()