mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
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:
parent
a6f6002fdf
commit
13bf6a0101
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user