Comments (5)
You can access the members field using the gateway API, however when using kord-core this chunking should be done by the cache, maybe it's worth reopening #55
kord.gateway.events.filterIsInstance<GuildCreate>.collect { event ->
event.guild.members.value
}
from kord.
I am using kord-extensions
(but created the issue here because the types are Kord's types)
And yes, exactly what I'm trying to do is:
- Request members only if the GuildCreate event does not contain them all, otherwise I just let the cache handle it.
- Trigger a custom event
GuildChunkingReadyEvent
that is fired when all guilds are chunked.
from kord.
I am using kord-extensions (but created the issue here because the types are Kord's types)
You were right in doing that
I am not sure why #55 got closed (@lukellmann do you know why?) however what you're describing is exactly what the cache should already do automatically (if you specified the right intent), is there a reason why the current cache behavior doesn't work for you?
from kord.
I am not sure why #55 got closed (@lukellmann do you know why?)
sorry, i don't 😅
from kord.
Closing this due to inactivity, feel free to reopen; most of this should be covered by #55
from kord.
Related Issues (20)
- Add permission overwrite for `@everyone` HOT 2
- Guild missing "created at" property HOT 1
- Nullability issue when getting application info HOT 1
- MessageModifyBuilder and MessageCreateBuilder should share a common interface HOT 1
- Support delta events for voice channels HOT 3
- Unexpected null field when parsing audit log entry HOT 2
- Sealed base type for Kord events HOT 2
- IdentifyRateLimiter threw an exception in context HOT 7
- Defer multiple public responses to slash commands
- Exception HOT 7
- `ZERO_WIDTH_SPACE` in `EmbedBuilder` is not a zero-width space, but left-to-right override
- How to create threads from a Message HOT 1
- ERROR dev.kord.gateway.DefaultGateway HOT 3
- Intents setting not found HOT 1
- More information in an stack trace / preconditions HOT 3
- Serializers should be public HOT 16
- Setting presence crashes the bot HOT 2
- Inconsistent access to Members/Member permissions
- Add support for sending voice messages HOT 7
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 kord.