Functionality for interacting with the Mojang API
get_players_current_skin(username)
Grab a player's current skin
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
A player's username |
required |
Returns:
Type | Description |
---|---|
str
|
The player's skin, encoded in base64 |
Raises:
Type | Description |
---|---|
ValueError
|
If no player with that username can be found |
RuntimeError
|
If anything else goes wrong |
Notes
While this query is case-insensitive, this method does not check if the provided username is valid