#Hi what is this error ?
1 messages · Page 1 of 1 (latest)
Hi bro
When you get errors, the easiest way to solve them is to read them. As example, it tells you that .get doesn't exists on .roles
I recommend roles.fetch(id)
Oh, wait, you're trying to access it from member
yes
Why don't you try to fetch the role from the guild? It makes more sense this way
yes its true
The member might not have that role, which will break things
guild.roles.fetch(id) works
@violet saddle
You have to await the fetch
i set await ?
(await guild.roles.fetch(id)).members...
error
Because the syntax is broken. Count ( and )
id is not defined
It is a placeholder. You have to put something there
what must i set here ?
Whatever you want
roles are always cached, no need to fetch
exemple please
the id of the role...
If you don't understand -> #resources and #rules 2
This whole conversation suggests otherwise
I seen people who copy-pasted code from internet to add new features to their bots, even if they don't know what that feature was in the first place
I recommend to just delete the whole code involving the id
Then the bot should work
k