Function: MinecraftStalk()
MinecraftStalk(
username):Promise<MinecraftStalkResult>
Defined in: src/minecraft/minecraft.ts:46
Fetches a Minecraft player profile from both PlayerDB and Mojang APIs.
Parameters
username
string
The Minecraft username to fetch, which is case-insensitive.
Returns
Promise<MinecraftStalkResult>
A Promise that resolves to either a Minecraft player profile or a descriptive error object indicating the reason for failure.
Example
import { MinecraftStalk } from 'your-module';
MinecraftStalk('exampleUsername')
.then(result => {
console.log(result);
})
.catch(error => {
console.error('Error fetching Minecraft profile:', error);
});
Last updated on