Fix guild.getGuildMember
This commit is contained in:
parent
e5504a32d8
commit
545caa3380
|
@ -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
|
||||||
|
|
Reference in New Issue