diff --git a/sdk%2Fjs%2Fplayer%2Fquery.md b/sdk%2Fjs%2Fplayer%2Fquery.md index f5b1e52..86e8f17 100644 --- a/sdk%2Fjs%2Fplayer%2Fquery.md +++ b/sdk%2Fjs%2Fplayer%2Fquery.md @@ -3,13 +3,13 @@ ## Example ```ts import { getPlayer } from "restfulmc-lib"; -import type { CachedPlayer } from "restfulmc-lib/dist/index"; +import type { CachedPlayer, RestfulMCAPIError } from "restfulmc-lib/dist/index"; try { const player: CachedPlayer = await getPlayer("Rainnny"); console.log(`Hello ${player.username}, your UUID is ${player.uniqueId}!`); } catch (err) { - if ((err as ErrorResponse).code == 404) { + if ((err as RestfulMCAPIError).code == 404) { console.error("Player with UUID or username not found."); } }