#Can't get on_message event to work

1 messages · Page 1 of 1 (latest)

wet aurora
#

Can't get on_message event to work

little nexusBOT
#

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

lean crystal
#

What isn't working

wet aurora
#

on_message event

#

@client.event
async def on_message(message):

frosty temple
#

its on_message_create

lean crystal
#

Are you using v5?

wet aurora
#

yes

frosty temple
#

also use @interactions.listen() decorator

wet aurora
#

and i'm new to this

#

ok

#

thanks

#

AttributeError: 'MessageCreate' object has no attribute 'content'

frosty temple
#

yes

#

because its not message

wet aurora
#

i'm really new to this

wet aurora
wet aurora
#

I don't know i think it's best to go back to discord.py

frosty temple
#

You just don't want to learn new things

#

creating slash commands and components usage much harder in discord.py

glossy moss
#

yes but discord.py you don't need to think you can just ask ChatGPT ^^

rustic berry
#

let me not read the docs and try and do this
<Doesn't work
Why doesn't it work

Tldr of this thread

#

In all seriousness, you're in for a bad time if you don't read the migration guide

lean crystal
wet aurora