resetSkin function
Reset's the player's skin.
Implementation
Future<void> resetSkin(String uuid, AccessToken accessToken) async {
final headers = {
'authorization': 'Bearer $accessToken',
};
final response = await request(
http.delete, _mojangApi, 'user/profile/$uuid/skin',
headers: headers);
if (response.statusCode == 401) {
final data = parseResponseMap(response);
throw AuthException(data['errorMessage']);
}
}