So, using discord.py-rewrite, I know that I can use:
def check(message):
"""Checks the message author and channel."""
return message.author == ctx.author and message.channel == ctx.channel
await bot.wait_for("message", timeout=180, check=check)
to check message input (which must be from the context author and in the context channel). But because I need this check for several commands, can't I just make:
def check_msg(context, message):
return context.author == message.author and context.channel == message.channel
and then use:
await bot.wait_for("message", timeout=180, check=check_msg)