blur
blur
KKord
Created by blur on 9/2/2024 in #help
Can't get guild members
Das sind sehr viele Informationen zum Verdauen und ehrlich gesagt verstehe ich nur die Hälfte, aber dennoch danke, dass du dir die Zeit genommen hast für diese ausführliche Erklärung. Discords API ist wirklich gigantisch
15 replies
KKord
Created by blur on 9/2/2024 in #help
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
KKord
Created by blur on 9/2/2024 in #help
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
KKord
Created by blur on 9/2/2024 in #help
Can't get guild members
15 replies
KKord
Created by blur on 9/2/2024 in #help
Can't get guild members
I only get code 200 responses back, no rate limits
15 replies
KKord
Created by blur on 9/2/2024 in #help
Can't get guild members
No description
15 replies
KKord
Created by blur on 9/2/2024 in #help
Can't get guild members
The bot also has Administrator privileges
15 replies
KKord
Created by blur on 9/2/2024 in #help
Can't get guild members
Yes, I have
15 replies
KKord
Created by blur on 9/2/2024 in #help
Can't get guild members
I've also tried kord.rest.guild.getGuildMembers(...).toList() which returns only me.
15 replies