Im currently working on a bot, actually for a bit longer now, always with commands. The argument for a command is always a Context Object:
@client.command
async def test(context):
message = context.message
So I've build my whole system around the Context Object. Now I wanted to use the on_message event, but instead of passing a Context Object, in this case, Discord passes a message Object:
@client.event
async def on_message(message):
...
How can I get the Context Objext using the message Object?