浏览代码

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

正在加载...
取消
保存