Browse Source

fixed lack of raising error in the self assign commands even tho the converts return nothing.

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

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

@@ -43,7 +43,7 @@ class SelfAssign():
"""
if role is None:
raise commands.BadArgument
settings = gs.get(ctx.guild)
if not settings.self_assign["enabled"]:
embed = discord.Embed(colour=discord.Colour(self.embed_colour),
@@ -72,7 +72,7 @@ class SelfAssign():
"""
if role is None:
raise commands.BadArgument
settings = gs.get(ctx.guild)
if not settings.self_assign["enabled"]:
embed = discord.Embed(colour=discord.Colour(self.embed_colour),

Loading…
Cancel
Save