NeuroAssassin / Toxic-Cogs

A collection of utility, moderation and fun plugins to Red - Discord Bot.
MIT License
47 stars 38 forks source link

[Reacticket] Users and Support role can not see ticket messages - Read Message History permissions #66

Open CruxCraft opened 2 years ago

CruxCraft commented 2 years ago

the user creating the ticket & the added support role do not have "Read Message History" permissions

Might it be possible instead to just copy the "everyone" permissions from the open ticket category, but then set "View Channels" to deny? This way the admin could decide what permissions the user has by just adjusting the category.

If all the roles/users from the category were synced that would be even more ideal =]

EDIT:

        overwrites = {
            guild.default_role: discord.PermissionOverwrite(read_messages=False, read_message_history=True),
            guild.me: can_read_and_manage,
            user: can_read,
        }

I tested & it works I don't know if my pull request I did for the other issue with channel names also contains this. I think it does? First time doing this...