Procházet zdrojové kódy

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

tags/v1.5.0
Roxie Gibson před 6 roky
rodič
revize
6ca55000c7
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +2
    -2
      Roxbot/cogs/selfassign.py

+ 2
- 2
Roxbot/cogs/selfassign.py Zobrazit soubor

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

Načítá se…
Zrušit
Uložit