소스 검색

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…
취소
저장