Fixed GetGuildMembers endpoint

This commit is contained in:
RogueException
2016-05-14 18:59:10 -03:00
parent cf6d3d25ec
commit 1ab4e1e246

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?