Closed AngelIsSad closed 3 years ago
What do you mean?
After you close a ticket or block someone, it doesnt get logged in the log channel
Is there any error? Did you give enough perms?
There are no errors and the Bot has Admin perms
Did you correctly set channel IDs in config.json?
I did
Everything works perfectly except the log
Apparently the bot was not sending any embed because there was no declared embed or anything. Should be fixed in the next commit.
There. Can you retry without setting config.showParticipants to true?
You changed the code right?
I did
There is an error saying log is not defiend
Refresh your code and try again?
I did many times
Error: Cannot read property 'forEach' of undefined
TypeError: Cannot read property 'forEach' of undefined
bot.js/line 273
There is literally nothing - did you put anything on line 273?
I have this on there
participants.forEach(p => {
Its line 237.... My bad
Still the same error TypeError: Cannot read property 'forEach' of undefined
Still doesn't work... Can i just send you my code?
Sure, go ahead
Provide the error too
Code: https://starb.in/Vr1YVE.js
Error: TypeError: Cannot read property 'forEach' of undefined Line: 315
I have modified the code abit btw
Can you remove lines 313 to 322?
It works but it doesn't send the log to the log channel. It sends the closing message
https://cdn.discordapp.com/attachments/845989262317977610/847054800649977866/unknown.png
Isn't it supposed to send the conversation between the mod and the other person or a link where you can read their convo?
I'll soon add this feature. Check your logs channel ID in your config.json file?
The log is going to the correct channel but it is sending the closeing message
It sends the line 220
return client.users.cache.get(support.targetID).send(Thanks for getting in touch with us. If you wish to open a new ticket, feel free to message me.\nYour ticket #${actualticket} has been closed.
)
This is sent to the user, yeah
And also sent to the log channel
Could you help me with the logs?
?
Yep, was a little busy - can you show me your code?
The bot.js?
Bot.js: https://starb.in/2KDwHI.js
There is 1 error with the mod role
The mod role id is correct
moderator is not defined
? It takes me to the top of the ticket
Hey. It seems like the unblock command isn't working
And when is this out? https://github.com/Cyanic76/discord-modmail/issues/19#issuecomment-848652268
Hey. It seems like the unblock command isn't working
What errors does it gives?
It doesn't give any error in the terminal, it just sends the message You can not use that
in the ticket channel even tho i have the mod role
The log feature doesn't seem to work