瀏覽代碼

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

tags/v1.5.0
Roxie Gibson 6 年之前
父節點
當前提交
f4d93e0ac4
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      Roxbot/cogs/selfassign.py

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

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