Fix guild.getGuildMember

This commit is contained in:
SeanOMik 2020-06-22 15:18:28 -05:00
parent e5504a32d8
commit 545caa3380
No known key found for this signature in database
GPG Key ID: FA4D55AC05268A88
1 changed files with 1 additions and 1 deletions

View File

@ -548,7 +548,7 @@ proc getGuildMember*(guild: var Guild, memberID: snowflake): GuildMember =
return member return member
result = newGuildMember(sendRequest(endpoint(fmt("/guilds/{guild.id}/members/{memberID}")), result = newGuildMember(sendRequest(endpoint(fmt("/guilds/{guild.id}/members/{memberID}")),
HttpPatch, defaultHeaders(), guild.id, RateLimitBucketType.guild), guild.id) HttpGet, defaultHeaders(), guild.id, RateLimitBucketType.guild), guild.id)
guild.members.add(result) guild.members.add(result)
# Would this endpoint be worth adding? https://discord.com/developers/docs/resources/guild#list-guild-members # Would this endpoint be worth adding? https://discord.com/developers/docs/resources/guild#list-guild-members