actually actually final commit?

This commit is contained in:
Seaswimmer 2023-03-08 21:42:48 -05:00
parent 4f09574891
commit a1498182d4

View file

@ -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)
await ctx.author.add_roles(role, reason="Requested through -lwaccess")
await ctx.send(content="Higher Access role granted.")
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 added.")
@commands.Cog.listener('on_message')
async def cocoreact(self, message):