Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
Fix url
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathund committed Nov 8, 2024
1 parent de02c04 commit 90065ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Private/RequestHandler.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const BASE_URL = 'http://localhost:3000/hypixel';
const BASE_URL = 'https://api.hypixel.net/v2';
import Client from '../Client.js';
import RequestData from './RequestData.js';
import isUUID from '../utils/isUUID.js';
Expand Down Expand Up @@ -72,7 +72,7 @@ class RequestHandler {
if (!input) throw new Error(this.client.errors.NO_NICKNAME_UUID);
if ('string' !== typeof input) throw new Error(this.client.errors.UUID_NICKNAME_MUST_BE_A_STRING);
if (isUUID(input)) return input.replace(/-/g, '');
const url = `http://localhost:3000/uuid/${input}`;
const url = `https://mowojang.matdoes.dev/${input}`;
if (this.client.cacheHandler.has(url)) {
return this.client.cacheHandler.get(url);
}
Expand Down

0 comments on commit 90065ba

Please sign in to comment.