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()
|
@commands.command()
|
||||||
async def lwaccess(self, ctx):
|
async def lwaccess(self, ctx):
|
||||||
"""You shouldn't be able to see this!"""
|
"""You shouldn't be able to see this!"""
|
||||||
role = await bot.get_role(1083210988888784996)
|
role = await ctx.guild.get_role(1083210988888784996)
|
||||||
await ctx.author.add_roles(role, reason="Requested through -lwaccess")
|
if role in ctx.author.roles:
|
||||||
await ctx.send(content="Higher Access role granted.")
|
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 added.")
|
||||||
|
|
||||||
@commands.Cog.listener('on_message')
|
@commands.Cog.listener('on_message')
|
||||||
async def cocoreact(self, message):
|
async def cocoreact(self, message):
|
||||||
|
|
Loading…
Reference in a new issue