Skip to content

Commit 0c7b136

Browse files
authored
Merge pull request #18 from cyanogus/add-missing-docstring
Add missing docstring for `get_uuid()`
2 parents 1a0b21f + 8b96199 commit 0c7b136

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ def __init__(self, api_key: str):
99
self.api_key = api_key
1010

1111
def get_uuid(self, player_name: str) -> str:
12+
"""Fetches the UUID of a player based on their username."""
1213
api_request = requests.get(f"https://api.mojang.com/users/profiles/minecraft/{player_name}")
1314
content = parse(api_request.content)
1415
return content["id"]

0 commit comments

Comments
 (0)