Skip to content

Commit

Permalink
Merge pull request #2 from jeremytiki/main
Browse files Browse the repository at this point in the history
Fixed issue in blurple.io.reply.Reply._validate_reply.
cysabi authored Jul 14, 2021
2 parents d2eb968 + c8f6595 commit 162820e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blurple/io/reply.py
Original file line number Diff line number Diff line change
@@ -133,8 +133,8 @@ async def _validate_reply(cls, reply, valid: t.Union[str, t.Container, t.Callabl
return content in valid
if callable(valid):
if inspect.iscoroutinefunction(object):
return await valid()
return valid()
return await valid(reply)
return valid(reply)

@staticmethod
def _get_reply_content(reply):

0 comments on commit 162820e

Please sign in to comment.