Skip to content

Commit

Permalink
Fix to get_prefixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy committed Jun 21, 2019
1 parent 35b01ee commit c6fa986
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions twitchio/ext/commands/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ async def get_prefix(self, message):
for prefix in prefixes:
if message.content.startswith(prefix):
return prefix

return prefixes
elif message.content.startswith(prefixes):
return prefixes
else:
return None

def add_command(self, command: Command):
# TODO Docs
Expand Down

0 comments on commit c6fa986

Please sign in to comment.