Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
QWERTZexe committed Aug 29, 2024
2 parents 57f76d4 + 7a91a36 commit ccfcdb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ async def create_partner_ticket(client: discord.Client, username: str, servernam
# Allow the bot too
await channel.set_permissions(await guild.fetch_member(client.user.id), read_messages=True, send_messages=True)
# Dont Allow muted role to use / cmds
await channel.set_permissions(guild.get_role(MUTED_ROLE_ID), use_application_commands=False)
await channel.set_permissions(guild.get_role(MUTED_ROLE_ID), use_application_commands=False, use_activities=False, use_external_apps=False)

# Allow users with the mod role to see and write in the channel
mod_role = guild.get_role(MOD_ROLE_ID)
Expand Down Expand Up @@ -344,7 +344,7 @@ async def create_ticket(client: discord.Client, username: str, memberid: int, re
# Allow the bot too
await channel.set_permissions(await guild.fetch_member(client.user.id), read_messages=True, send_messages=True)
# Dont Allow muted role to use / cmds
await channel.set_permissions(guild.get_role(MUTED_ROLE_ID), use_application_commands=False)
await channel.set_permissions(guild.get_role(MUTED_ROLE_ID), use_application_commands=False, use_activities=False, use_external_apps=False)
# Allow users with the mod role to see and write in the channel
mod_role = guild.get_role(MOD_ROLE_ID)
await channel.set_permissions(mod_role, read_messages=True, send_messages=True)
Expand Down

0 comments on commit ccfcdb8

Please sign in to comment.