Skip to content

Commit

Permalink
[V3 RoleInvite] Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
retke committed May 21, 2018
1 parent f663afd commit ff3ba11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roleinvite/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async def add_invite(self, guild: discord.Guild, invite: str, roles: list):
if not invite_object:
raise Errors.InviteNotFound("The invite given doesn't exist in that guild")

elif all(invite != x for i in ["default", "main"]):
elif all(invite != x for x in ["default", "main"]):
raise Errors.NotInvite("The invite sent isn't a discord.Invite, not it is main/default")

if roles == []:
Expand Down

0 comments on commit ff3ba11

Please sign in to comment.