Role being limited to 1 is due to this being a Mute command, please help if possible.
try: guild = ctx.guild await guild.create_role(name="Muted", limit=1) except Exception as e: print(e) await ctx.send("something went wrong")
Simply check if the role exists.
try: guild = ctx.guild if not guild.has_role(name="Muted"): await guild.create_role(name="Muted") except Exception as e: print(e) await ctx.send("something went wrong")
1.4m articles
1.4m replys
5 comments
57.0k users