瀏覽代碼

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

tags/v1.5.0
Roxie Gibson 6 年之前
父節點
當前提交
6ca55000c7
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      Roxbot/cogs/selfassign.py

+ 2
- 2
Roxbot/cogs/selfassign.py 查看文件

@@ -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…
取消
儲存