mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 21:16:09 +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 {
|
export function USER_GUILDS(guildId?: Snowflake): string {
|
||||||
if (guildId) { return `/users/@me/guilds/${guildId}`; }
|
if (guildId) { return `/users/@me/guilds/${guildId}`; }
|
||||||
return `/users/@me/guilds/`;
|
return `/users/@me/guilds`;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function USER_DM() {
|
export function USER_DM() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user