Skip to content

Commit

Permalink
[Tournaments] Use guild.owner_id
Browse files Browse the repository at this point in the history
  • Loading branch information
laggron42 committed May 13, 2021
1 parent 21c2dc7 commit 25e612c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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.2"
__version__ = "1.1.3"
__author__ = ["retke (El Laggron)", "Wonderfall", "Xyleff"]

@commands.command(hidden=True)
Expand Down
2 changes: 1 addition & 1 deletion tournaments/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def mod_or_to():
async def check(ctx: commands.Context):
if ctx.guild is None:
return False
if ctx.author.id == ctx.guild.owner.id:
if ctx.author.id == ctx.guild.owner_id:
return True
if ctx.author.guild_permissions.administrator:
return True
Expand Down

0 comments on commit 25e612c

Please sign in to comment.