run: replace other/peer to user

- discord_endpoints: remove ambiguity on PUT/PATCH Modify Channel route
This commit is contained in:
Luna Mendes 2018-11-20 14:52:35 -03:00
parent 437f8de643
commit 3e28501bdb
2 changed files with 3 additions and 1 deletions

View File

@ -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}

2
run.py
View File

@ -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