v2.5.0 push 2

This commit is contained in:
DJj123dj
2022-08-12 11:20:42 +02:00
parent 034247ea99
commit 568b2c9bee
16 changed files with 216 additions and 33 deletions
+3 -2
View File
@@ -18,10 +18,11 @@ const getUserInfo = (channel) => {
}
channel.messages.fetchPinned().then(msglist => {
var firstmsg = msglist.last()
if (firstmsg == undefined || firstmsg.author.id != client.user.id) return false
const hiddendata = bot.hiddenData.readHiddenData(firstmsg.embeds[0].description)
const ticketId = hiddendata.data.find(d => d.key == "type")
const id = firstmsg.embeds[0].author.name ? firstmsg.embeds[0].author.name : false
const id = hiddendata.data.find(d => d.key == "openerid").value
result.ticketopener.id = id