actually actually final commit?
This commit is contained in:
parent
4f09574891
commit
a1498182d4
1 changed files with 7 additions and 3 deletions
|
@ -18,9 +18,13 @@ class Galaxy(commands.Cog):
|
|||
@commands.command()
|
||||
async def lwaccess(self, ctx):
|
||||
"""You shouldn't be able to see this!"""
|
||||
role = await bot.get_role(1083210988888784996)
|
||||
role = await ctx.guild.get_role(1083210988888784996)
|
||||
if role in ctx.author.roles:
|
||||
await ctx.author.removeroles(role, reaason="Requested through -lwaccess")
|
||||
await ctx.send(content="Higher Access role removed.")
|
||||
else:
|
||||
await ctx.author.add_roles(role, reason="Requested through -lwaccess")
|
||||
await ctx.send(content="Higher Access role granted.")
|
||||
await ctx.send(content="Higher Access role added.")
|
||||
|
||||
@commands.Cog.listener('on_message')
|
||||
async def cocoreact(self, message):
|
||||
|
|
Loading…
Reference in a new issue