Comments (3)
when i run it found out all GuildMembers are cached, Promise doesn't return results
so if you want to use this here is your code
message.guild.members.fetch().then(() => message.guild.members.cache.forEach((member) => console.log(member.user.username)))
sorry for your experience
from discord.js-selfbot-v13.
@andy-t-wang fetch() are not supported by userbot, therefore you have to use cached.
from discord.js-selfbot-v13.
@andy-t-wang fetch() are not supported by userbot, therefore you have to use cached.
if you look here the answer is correct
but when using websocket it is still possible to fetch()
this.guild.shard.send({
op: Opcodes.REQUEST_GUILD_MEMBERS,
d: {
guild_id: this.guild.id,
presences,
user_ids,
query,
nonce,
limit,
},
});
from discord.js-selfbot-v13.
Related Issues (20)
- <Message>.clickButton() does not return a modal
- <Modal>.reply() throws an error incorrectly HOT 1
- ERROR | NEW UPDATE HOT 2
- Problem logging into the server HOT 1
- custom status dont work with the newest version HOT 1
- GUILD_MEMBERS_TIMEOUT Members didn't arrive in time HOT 1
- MESSAGE_ID_NOT_FOUND when a thread is created in the event "messageCreate" HOT 2
- After some time of running, bot doesnt to anything anymore HOT 5
- Send Slash in DM USER HOT 3
- Unknown Message Error after using acceptInvite HOT 4
- Cannot set properties of undefined (setting 'keepAlive') HOT 8
- Cache system / ram usage HOT 9
- CustomStatus is not working HOT 2
- Can't handle error: INTERACTION_FAILED HOT 2
- Can't Set Activity HOT 1
- I get an "Unknown message" error when creating a server HOT 5
- Can't send messages
- Error in slash command HOT 3
- voiceStateUpdate event incorrectly returns true for both oldState and newState.streaming when stopping a stream HOT 1
- Can't Install ! HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord.js-selfbot-v13.