Browse Source

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

tags/v1.5.0
Roxie Gibson 6 years ago
parent
commit
f4d93e0ac4
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      Roxbot/cogs/selfassign.py

+ 3
- 3
Roxbot/cogs/selfassign.py View File

@@ -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),

Loading…
Cancel
Save