diff --git "a/src/api/routes/users/@me/connections/\043connection_name/\043connection_id/access-token.ts" "b/src/api/routes/users/@me/connections/\043connection_name/\043connection_id/access-token.ts" index 1ad1c7a..3f4de8b 100644 --- "a/src/api/routes/users/@me/connections/\043connection_name/\043connection_id/access-token.ts" +++ "b/src/api/routes/users/@me/connections/\043connection_name/\043connection_id/access-token.ts" @@ -58,8 +58,7 @@ ], }); if (!connectedAccount) throw DiscordApiErrors.UNKNOWN_CONNECTION; - if (connectedAccount.revoked) - throw new ApiError("Connection revoked", 0, 400); + if (connectedAccount.revoked) throw DiscordApiErrors.CONNECTION_REVOKED; if (!connectedAccount.token_data) throw new ApiError("No token data", 0, 400);