From 545caa3380f2c8f8b3e3245756a7d42c5bc1c4e8 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Mon, 22 Jun 2020 15:18:28 -0500 Subject: [PATCH] Fix guild.getGuildMember --- src/guild.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guild.nim b/src/guild.nim index 7e8566c..9df5e26 100644 --- a/src/guild.nim +++ b/src/guild.nim @@ -548,7 +548,7 @@ proc getGuildMember*(guild: var Guild, memberID: snowflake): GuildMember = return member 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) # Would this endpoint be worth adding? https://discord.com/developers/docs/resources/guild#list-guild-members