From 68b0bf3e6029198580dc8b5aa637bed23fcddfd6 Mon Sep 17 00:00:00 2001 From: Braydon Date: Mon, 15 Apr 2024 07:41:09 -0700 Subject: [PATCH] Update sdk/js/player/query --- sdk%2Fjs%2Fplayer%2Fquery.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."); } }