async def srecolor(self, ctx, *, roleName: discord.Role, hexColor): """Edit Event Role color/colour""" try: roleName.edit(colour=discord.Colour(int(f"0x{hexColor}", 16))) except: ctx.send("Oops, that didn't work... Maybe something was typed weird?") else: await ctx.message.add_reaction("✅")
async def srename(self, ctx, roleName: discord.Role, *, newName): """Edit Event Role name""" try: roleName.edit(name=newName) except: ctx.send("Oops, that didn't work... Maybe something was typed weird?") else: await ctx.message.add_reaction("✅")