Cyanic76 / discord-modmail

THIS IS A MIRROR. ISSUES AND PR MUST BE SUBMITTED TO CODEBERG.
https://codeberg.org/Cyanic76/discord-modmail
MIT License
77 stars 48 forks source link

BUG: Probleme with channel permission and close #4

Closed ZyGout closed 3 years ago

ZyGout commented 3 years ago

Describe the bug

Not every times, everyone have acces to the channel or i can't close the ticket.

To reproduce

Not every times, everyone have acces to the channel or i can't close the ticket.

Expected behavior

No probleme, I always can close the ticket or the channel are always configurated.

Your host

I use repl.it with 512MB of RAM

Cyanic76 commented 3 years ago

Seems like a permission is missing - Are you sure you gave the "Manage channels" permission to your bot?

ZyGout commented 3 years ago

Yes, it have the admin perm

Cyanic76 commented 3 years ago

Okay, is it showing any error, warn or something in the console/logs?

ZyGout commented 3 years ago

Yes, "Cannot read property 'targetID' of null" when i want to close the ticket. And i have fix the bug with permission, do you want my code ?

Cyanic76 commented 3 years ago

I've published a commit that modify where support.targetID is used in the complete command. Can you try updating your code to see if it's fixed?

ZyGout commented 3 years ago

Ok, i have change the version and i will say you if i have the same probleme.

stale[bot] commented 3 years ago

This issue was marked as stale because it had no activity during the past 2 weeks. If this issue keeps being inactive, it will get closed in 3 days. Thanks for your contributions!

stale[bot] commented 3 years ago

This issue was closed due to inactivity. Thanks for your contributions!