From 3e28501bdb8acfae3c1f64512bd4d131f156b012 Mon Sep 17 00:00:00 2001 From: Luna Mendes Date: Tue, 20 Nov 2018 14:52:35 -0300 Subject: [PATCH] run: replace other/peer to user - discord_endpoints: remove ambiguity on PUT/PATCH Modify Channel route --- discord_endpoints.txt | 2 +- run.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/discord_endpoints.txt b/discord_endpoints.txt index 752da18..d95597e 100644 --- a/discord_endpoints.txt +++ b/discord_endpoints.txt @@ -69,7 +69,7 @@ Group DM Remove Recipient DELETE /channels/{channel.id}/recip Leave Guild DELETE /users/@me/guilds/{guild.id} List Guild Members GET /guilds/{guild.id}/members List Voice Regions GET /voice/regions -Modify Channel PUT/PATCH /channels/{channel.id} +Modify Channel PATCH /channels/{channel.id} Modify Current User PATCH /users/@me Modify Current User's Nick PATCH /guilds/{guild.id}/members/@me/nick Modify Guild PATCH /guilds/{guild.id} diff --git a/run.py b/run.py index f531937..8182a0c 100644 --- a/run.py +++ b/run.py @@ -235,6 +235,8 @@ async def api_index(app): path = path.replace('member.id', 'user.id') path = path.replace('banned.id', 'user.id') path = path.replace('target.id', 'user.id') + path = path.replace('other.id', 'user.id') + path = path.replace('peer.id', 'user.id') methods = rule.methods