#but when i do this

1 messages · Page 1 of 1 (latest)

worthy dune
#

ttt

#

fucking hate slowmode and chats spammy

lethal pulsar
#

hmm

worthy dune
#

I remember something about this was shitty, can you try guild.members.cache,get(mem.id) in the foreach

lethal pulsar
#

hmm

worthy dune
#

i read a lot, sometimes things get jumbled

lethal pulsar
#

i need to get members

#

and then add?

worthy dune
#

but i think its a different object you need

#

yes

lethal pulsar
#

ah so much requests....

#

ok

worthy dune
#

its about user/member objects

lethal pulsar
#

also how can i sleep in typescript?

worthy dune
#

you shouldnt assign roles to many people all at once many times right

#

like

lethal pulsar
#

await new Promise((f) => setTimeout(f, 1000 * 3));

this worlk??

lethal pulsar
#

i just wanted assignt one role to all people

lethal pulsar
#

it's like ?role humans __

worthy dune
lethal pulsar
#

sure!

worthy dune
#

well i can dig it up, just need a couple secs xdd

lethal pulsar
#

i can't do a get request for every member that's already fetched... ;)

worthy dune
worthy dune
#

guild.members.fetch doesnt give the object you can assign roles to

#

so you will need to get the id from the cache

lethal pulsar
#

ah

#

i see

worthy dune
#

which is what the guild.members.cache does

lethal pulsar
worthy dune
#

if i remember correclty

#

async function testing(){
    let members = await mainguild.members.fetch()
    members.forEach(bmember => {
        let member = mainguild.members.cache.get(bmember.id)

        member.roles.add(newrole)

        
    })
}```
#

like a so

lethal pulsar
#

ooo

#

thanks, let me give it a try....

worthy dune
#

epic!

#

lmk if its working :)))

lethal pulsar
#

ok, will update you

worthy dune
#

apparently thats not the case

lethal pulsar
worthy dune
#

interaction.guild.members.cache?

lethal pulsar
#

🤷

#

does not exsist

worthy dune
#

uh

#

yea no clue then im sorry

lethal pulsar
#

just need some type hinting...

worthy dune
#

dont use it tho

#

apparently thats api spamming

lethal pulsar
#

huh??

lethal pulsar