Fixed the permissions
manage_server -> manage_guild
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user