Browse Source

Fixed GetGuildMembers endpoint

tags/1.0-rc
RogueException 9 years ago
parent
commit
1ab4e1e246
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net/API/DiscordRawClient.cs

+ 1
- 1
src/Discord.Net/API/DiscordRawClient.cs View File

@@ -488,7 +488,7 @@ namespace Discord.API
while (true)
{
int runLimit = (limit >= DiscordConfig.MaxUsersPerBatch) ? DiscordConfig.MaxUsersPerBatch : limit;
string endpoint = $"guild/{guildId}/members?limit={runLimit}&offset={offset}";
string endpoint = $"guilds/{guildId}/members?limit={runLimit}&offset={offset}";
var models = await Send<GuildMember[]>("GET", endpoint).ConfigureAwait(false);

//Was this an empty batch?


Loading…
Cancel
Save