#properties of event?

1 messages · Page 1 of 1 (latest)

fickle oracle
#

also, how can i see All the properties of "event"
like,

async def on_message_create(event):
    username = message.author.name```
doesn't work, i have seen the errors, and i have looked in the online guide and the source code, and can't really see a clear list of properties.
wary ospreyBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

cold wedge
#

You can typehint it as the event type

#
@listen()
async def on_message_create(event: events.MessageCreate):
    username = message.author.name```