fix(routes): remove trailing slash from USER_GUILDS (#129)

Discord returns 404 with when trying to GET /users/@me/guilds/
This commit is contained in:
teaishealthy 2023-01-27 22:51:28 +01:00 committed by GitHub
parent a6f6002fdf
commit 13bf6a0101
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ export function GUILD_ROLES(guildId: Snowflake): string {
export function USER_GUILDS(guildId?: Snowflake): string {
if (guildId) { return `/users/@me/guilds/${guildId}`; }
return `/users/@me/guilds/`;
return `/users/@me/guilds`;
}
export function USER_DM() {