Skip to content

Commit

Permalink
Add missing await to channel.set_permissions (#165)
Browse files Browse the repository at this point in the history
* Add missing await to channel.set_permissions

on_guild_channel_create does not await channel.set_permissions.

* Bump version number

Co-authored-by: El Laggron <laggron42@gmail.com>
  • Loading branch information
monty-dev and laggron42 committed May 6, 2021
1 parent 4f5d1ae commit 4bfcb96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions warnsystem/warnsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def __init__(self, bot):

self.task: asyncio.Task

__version__ = "1.3.16"
__version__ = "1.3.17"
__author__ = ["retke (El Laggron)"]

# helpers
Expand Down Expand Up @@ -1363,7 +1363,7 @@ async def on_guild_channel_create(self, channel: discord.abc.GuildChannel):
if not role:
return
try:
channel.set_permissions(
await channel.set_permissions(
role,
send_messages=False,
add_reactions=False,
Expand Down

0 comments on commit 4bfcb96

Please sign in to comment.