Esempio n. 1
0
 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("✅")
Esempio n. 2
0
 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("✅")