#do you have the messagecontent intent

1 messages · Page 1 of 1 (latest)

zenith thorn
#

yeah

#

also defined partials but I don't completely understand this

#
    discordClient = new discord.Client({ intents: [
        GatewayIntentBits.Guilds |
        GatewayIntentBits.GuildMessages |
        GatewayIntentBits.MessageContent | 
        GatewayIntentBits.GuildMembers |
        GatewayIntentBits.GuildPresences |
        GatewayIntentBits.GuildMemberAdd |
        GatewayIntentBits.GuildMemberRemove
    ], partials: [
        Partials.Message,
        Partials.Channel,
        Partials.Reaction
    ] });
real crescent
#

show your messagecreate handler

lavish owl
real crescent
#

you dont have the DirectMessages intent

zenith thorn
#

yeah I was wondering if that was correct, because they are flags I used |

#

is it an array so I should use commas?

real crescent
#

i've seen it being used before iirc, shouldnt really matter

lavish owl
#

oh

lavish owl
zenith thorn
#

it crashes immediately with commas

lavish owl
#

Ohhh

zenith thorn
#

I added DirectMessages

#

now it indeed does respond!

#

thanks!