fnbr
Version:
A library to interact with Epic Games' Fortnite HTTP and XMPP services
30 lines (29 loc) • 1.09 kB
TypeScript
import Base from '../Base';
import STWProfile from '../structures/stw/STWProfile';
import STWNewsMessage from '../structures/stw/STWNewsMessage';
import type { STWWorldInfoData } from '../../resources/structs';
/**
* Represents the client's STW manager
*/
declare class STWManager extends Base {
/**
* Fetches the Save The World profile for a players
* @param user The id or display name of the user
* @throws {UserNotFoundError} The user wasn't found
* @throws {EpicgamesAPIError}
*/
getProfile(user: string): Promise<STWProfile>;
/**
* Fetches the current Save The World news
* @param language The language of the news
* @throws {EpicgamesAPIError}
*/
getNews(language?: import("../../resources/structs").Language): Promise<STWNewsMessage[]>;
/**
* Fetches the current Save The World world info
* @param language The language of the world info
* @throws {EpicgamesAPIError}
*/
getWorldInfo(language?: import("../../resources/structs").Language): Promise<STWWorldInfoData>;
}
export default STWManager;