From 8b9619908ece912237d070e58e4a154b6c8019fd Mon Sep 17 00:00:00 2001 From: Sabi <120003982+cyanogus@users.noreply.github.com> Date: Mon, 10 Jul 2023 06:16:18 +0000 Subject: [PATCH] Add missing docstring for `get_uuid()` --- api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api.py b/api.py index bfec648..75e40d0 100644 --- a/api.py +++ b/api.py @@ -9,6 +9,7 @@ def __init__(self, api_key: str): self.api_key = api_key def get_uuid(self, player_name: str) -> str: + """Fetches the UUID of a player based on their username.""" api_request = requests.get(f"https://api.mojang.com/users/profiles/minecraft/{player_name}") content = parse(api_request.content) return content["id"]