Skip to content

Commit

Permalink
[Tournaments] Fixed permissions of lag_channel at the end of a tourna…
Browse files Browse the repository at this point in the history
…ment (#160)
  • Loading branch information
Xyleff2049 committed Apr 12, 2021
1 parent 6d3fc09 commit 9ec2a2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tournaments/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ async def clear_channels():
messages = await channel.history(limit=None, after=two_weeks_ago).flatten()
if messages:
await mass_purge(messages, channel)
if channel == tournament.lag_channel:
continue
if tournament.game_role:
await channel.set_permissions(
tournament.game_role, read_messages=True, send_messages=False
Expand Down
2 changes: 1 addition & 1 deletion tournaments/tournaments.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def __init__(self, bot: Red):
except Exception as e:
log.error("Couldn't load dev env values.", exc_info=e)

__version__ = "1.1.0"
__version__ = "1.1.1"
__author__ = ["retke (El Laggron)", "Wonderfall", "Xyleff"]

@commands.command(hidden=True)
Expand Down

0 comments on commit 9ec2a2a

Please sign in to comment.