Merge pull request #327 from RogueException/issue-240

Adjusted GetGuildPruneCount to using params;
This commit is contained in:
RogueException
2016-10-20 05:05:23 -03:00
committed by GitHub

View File

@@ -671,7 +671,7 @@ namespace Discord.API
options = RequestOptions.CreateOrClone(options);
var ids = new BucketIds(guildId: guildId);
return await SendJsonAsync<GetGuildPruneCountResponse>("GET", () => $"guilds/{guildId}/prune", args, ids, options: options).ConfigureAwait(false);
return await SendAsync<GetGuildPruneCountResponse>("GET", () => $"guilds/{guildId}/prune?days={args.Days}", ids, options: options).ConfigureAwait(false);
}
//Guild Bans