#but the bot still does not work tho it

1 messages ยท Page 1 of 1 (latest)

cursive salmon
#

Ok so is there an error?

gaunt dune
#

.

#

@rough shard

#

i will add you too

rough shard
#

I see you

gaunt dune
#

this is my index.js

rocky rover
#

You have clearly not declared the CHANNEL partial

gaunt dune
#

and basically everything is working but the bot doesnt act on the code

gaunt dune
#

what is that and please explain what thjat means

thick gateBOT
gaunt dune
#

should i change this ?

#

to like this

rocky rover
#

no just add the partials section below intents

rough shard
#

you need both

cursive salmon
#

const myIntents = new Intents()
myIntents.add(Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES, Intents.FLAGS.GUILD_VOICE_STATES, Intents.FLAGS.GUILD_PRESENCES,Intents.FLAGS.GUILD_MESSAGE_REACTIONS, Intents.FLAGS.GUILD_MESSAGE_TYPING, Intents.FLAGS.GUILD_MEMBERS, Intents.FLAGS.GUILD_INVITES, Intents.FLAGS.GUILD_INTEGRATIONS, Intents.FLAGS.GUILD_EMOJIS_AND_STICKERS, Intents.FLAGS.GUILD_BANS, Intents.FLAGS.DIRECT_MESSAGE_TYPING, Intents.FLAGS.DIRECT_MESSAGE_REACTIONS, Intents.FLAGS.DIRECT_MESSAGES, Intents.FLAGS.GUILD_WEBHOOKS)
const client = new Client({ intents: myIntents, partials: ["CHANNEL", "GUILD_MEMBER", "MESSAGE", "REACTION", "USER"]})

#

thats how I have it

gaunt dune
#

okay but you cant have two client

rocky rover
#

merge them

cursive salmon
#

Bruh

rocky rover
#

put the partials in the main client

gaunt dune
#

oh ok

#

gotchu

rocky rover
#

below the intents

gaunt dune
#

is it like Partials.FLAGS.MESSAGE

#

?

rocky rover
#

no

#

it's simply the name as string

rocky rover
cursive salmon
#

Functionality of my code: โœ…
Can u actually go through it without getting psychical damage: โŒ
Index.js = 5.5k lines code ๐Ÿ™‚

rough shard
#

I wonder if a similar partials enum would be worth

cursive salmon
rocky rover
gaunt dune
#

looking good?

rocky rover
#

do you ever use webhooks intent or the integrations intent?

rough shard
gaunt dune
#

its fine

#

but the bot still dont respond

cursive salmon
#

pain

rocky rover
#

show your messageCreate code

rough shard
#

have you saved/restarted to ensure the correct code is being run?
could you log something at the top of the messageCreate listener to see if the event is being fired?

gaunt dune
#

@rocky rover

gaunt dune
rocky rover
#

you are checking if message.channel.id is equal to that id, which is probably not for your dm

cursive salmon
#

yeah

#

Found that too

gaunt dune
#

we are talking about this right ?

rocky rover
#

no

gaunt dune
#

because the things on top of that are for somewthing else

rocky rover
#

see the 31st line

#

your code will only run if the id is same as that number

gaunt dune
#

this is for a server

#

nut for a dm

#

not

rocky rover
#

then move the if statement out of the other one

#

also message.member.user is unnecessary, message.author works

gaunt dune
#

thats what i meant when i said that everything on top is for a server, and i am adding dm script on the botom

gaunt dune
#

31?

rocky rover
#

yes

gaunt dune
#

OHHH

#

this is like (dm script inside a channel id ===

#

righjt ?

rocky rover
#

yes

gaunt dune
#

oh that is not good

rough shard
#

this is why tabbing is important

cursive salmon
#

That's why using Copilot is OP

#

๐Ÿ™‚

rough shard
#

never used it, but I hear it's cool

gaunt dune
#

i dont understand both of u but ok

gaunt dune
rocky rover
#

show code

gaunt dune
#

i am thinking another } has to be moved

rocky rover
#

you didn't move it out tho

#

i believe two

gaunt dune
#

i moved only 1

#

so move another 1 right ?

#

i have said hello

#

and it actually received it

#

good

#

but now we have a null error

rocky rover
#

use message.author.send

#

as i said above

gaunt dune
#

alright

cursive salmon
gaunt dune
#

omg it replied

#

or sent*

cursive salmon
#

For me "message.member.user.send("hey")" works

rocky rover
#

it can't in dms

cursive salmon
#

I didn't know that she wanted dms

#

lol

rocky rover
#

message.member doesn't exists in dms

cursive salmon
gaunt dune
#

handsome guy

rocky rover
#

also message.member.user is just a longer way to write message.author

cursive salmon
#

true

rocky rover
#

but that's up to you

cursive salmon
#

Yeah

gaunt dune
#

thanks everybody !

cursive salmon
#

Someone told me that

rocky rover
#

author is simply a getter to user

#

so whoever told you that probably didn't look at docs

#

author is simply same as the user

cursive salmon
#

Bruh

cursive salmon
rocky rover
#

alright this is solved

gaunt dune
#

thanks alot