Skip to content
Discussion options

You must be logged in to vote

Okay, there are a lot of problems here.

  1. The provided reproducible code sample doesn't work. It should be something that we can copy & paste to test ourselves to see the error. It's also incorrect syntax.
  2. p is defined as a Promise, but the code in there doesn't need it to be. You also include a reference to itself in there.
  3. You have unnecessary awaits here:
let sunucu = await client.guilds.cache.get(id)
let a = await sunucu.members.cache.get(req.user.id)

These methods don't return a Promise (which adds to point 2).

  1. You specify the "server members" intent which doesn't exist - I assume you mean the GUILD_MEMBERS one. I feel like you should be including GUILDS too.

After all of this, I a…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by almostSouji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #6533 on August 27, 2021 16:54.