Fix ability to load and resolve last comment on perms for commands.

This commit is contained in:
TheBluekr 2020-03-08 12:32:10 +01:00
parent 85a9093be9
commit 43740dc9fc
No known key found for this signature in database
GPG key ID: 839D51A91C353D5A
2 changed files with 5 additions and 6 deletions

View file

@ -1,7 +1,7 @@
from .trotters import Trotters
from .roletracker import RoleTracker
async def setup(bot):
trotters = Trotters(bot)
await trotters.initialize()
bot.add_cog(trotters)
roletracker = RoleTracker(bot)
await roletracker.initialize()
bot.add_cog(roletracker)

View file

@ -52,11 +52,11 @@ class RoleTracker(commands.Cog):
# Commands
@commands.group()
@commands.guild_only()
@checks.mod_or_permissions(manage_roles=True)
async def roletracker(self, ctx: GuildContext):
"""Role Trackers settings"""
pass
@checks.admin_or_permissions(manage_roles=True)
@roletracker.command(name="set")
async def set_role(self, ctx: GuildContext, role: discord.Role, enabled: bool):
"""
@ -78,7 +78,6 @@ class RoleTracker(commands.Cog):
await self.config.role(role).addable.set(True)
await ctx.tick()
@checks.admin_or_permissions(manage_roles=True)
@roletracker.command(name="roles")
async def view_roles(self, ctx: GuildContext):
"""