blur
Can't get guild members
Also, why do all of these behave differently and why are there so many?
kord.getGuild(Snowflake(GUILD_ID)).members
kord.rest.guild.getGuildMembers(Snowflake(GUILD_ID))
kord.rest.guild.getGuild(Snowflake(GUILD_ID)).members
interaction.guild.members
interaction.getGuild().members
interaction.guild.requestMembers()
interaction.getGuild().requestMembers()
15 replies
Can't get guild members
Solved the issue. The bug was that the internal member cache does not auto-populate on bot startup, and only adds a new member once they have interacted in the server.
Inside the main class (not in a command), I can retrieve all members using
kord.getGuild(Snowflake(GUILD_ID)).members
. I store that state then in my own global members variable, updating accordingly.
Inside a command, that code only returns the bot itself.15 replies
Can't get guild members
https://gitlab.com/futureblur/zip/-/blob/kotlin-migration/src/main/kotlin/commands/verification/Accept.kt?ref_type=heads here is the code btw
15 replies