Fixed the permissions

manage_server -> manage_guild
This commit is contained in:
Kowlin
2018-11-06 00:35:08 +01:00
parent 68463d3181
commit 4b9cd3493b
4 changed files with 8 additions and 8 deletions

View File

@@ -75,7 +75,7 @@ class Dungeon(BaseCog):
@commands.group(autohelp=True)
@commands.guild_only()
@checks.admin_or_permissions(manage_server=True)
@checks.admin_or_permissions(manage_guild=True)
async def dungeon(self, ctx):
"""Main dungeon commands."""
pass

View File

@@ -5,11 +5,11 @@
"description": "Posts invites to servers, if the bot is allowed to view them. Does not generate new invites.",
"install_msg": "Thanks for installing, have fun.",
"permissions" : [
"manage_server"
"manage_guild"
],
"short": "Post server invites.",
"tags": [
"invite"
],
"type": "COG"
}
}

View File

@@ -110,7 +110,7 @@ class Timezone(BaseCog):
)
@time.command()
@checks.admin_or_permissions(manage_server=True)
@checks.admin_or_permissions(manage_guild=True)
async def set(self, ctx, user: discord.Member, *, tz):
"""Allows the mods to edit timezones."""
author = ctx.message.author

View File

@@ -170,7 +170,7 @@ class Tools(BaseCog):
@commands.guild_only()
@commands.command()
@checks.mod_or_permissions(manage_server=True)
@checks.mod_or_permissions(manage_guild=True)
async def banlist(self, ctx):
"""Displays the server's banlist."""
try:
@@ -271,7 +271,7 @@ class Tools(BaseCog):
@commands.guild_only()
@commands.command()
@checks.mod_or_permissions(manage_server=True)
@checks.mod_or_permissions(manage_guild=True)
async def inrole(self, ctx, *, rolename):
"""Check members in the role specified."""
guild = ctx.guild
@@ -404,7 +404,7 @@ class Tools(BaseCog):
@commands.guild_only()
@commands.command()
@checks.mod_or_permissions(manage_server=True)
@checks.mod_or_permissions(manage_guild=True)
async def newusers(self, ctx, count: int = 5, fm: str = "py"):
"""Lists the newest 5 members."""
guild = ctx.guild
@@ -453,7 +453,7 @@ class Tools(BaseCog):
@commands.guild_only()
@commands.command()
@checks.mod_or_permissions(manage_server=True)
@checks.mod_or_permissions(manage_guild=True)
async def perms(self, ctx, user: discord.Member = None):
"""Fetch a specific user's permissions."""
if user is None: