Skip to content

Commit

Permalink
Use Proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Larsundso committed Aug 27, 2024
1 parent 1640407 commit 7e9ea9c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/BaseClient/UtilModules/requestHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ import voice from './requestHandler/voice.js';
* @param token - The token to use for authentication.
*/
export default async (guildId: string, token: string) => {
const rest = new DiscordRest.REST({ version: '10' }).setToken(token);
const rest = new DiscordRest.REST({
version: '10',
api: 'http://127.0.0.1:8080/api',
timeout: 60000,
}).setToken(token);
const api = new DiscordCore.API(rest);
cache.apis.set(guildId, api);
};
Expand Down

0 comments on commit 7e9ea9c

Please sign in to comment.