Explorar el Código

changed the iam command error handling to raise a better error.

tags/v1.5.0
Roxie Gibson hace 6 años
padre
commit
f4d93e0ac4
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. +3
    -3
      Roxbot/cogs/selfassign.py

+ 3
- 3
Roxbot/cogs/selfassign.py Ver fichero

@@ -44,8 +44,8 @@ class SelfAssign():
settings = gs.get(ctx.guild)

if role is None:
raise commands.BadArgument
raise commands.MissingRequiredArgument
if not settings.self_assign["enabled"]:
embed = discord.Embed(colour=discord.Colour(self.embed_colour),
description="SelfAssignable roles are not enabled on this server")
@@ -74,7 +74,7 @@ class SelfAssign():
settings = gs.get(ctx.guild)

if role is None:
raise commands.BadArgument
raise commands.MissingRequiredArgument

if not settings.self_assign["enabled"]:
embed = discord.Embed(colour=discord.Colour(self.embed_colour),

Cargando…
Cancelar
Guardar