UNPKG

guilded.ts

Version:

A powerful NPM module that allows you to easily interact with the Guilded API.

29 lines 836 B
import { Base } from '../Base'; import { Server } from './Server'; /** * Represents a server role on Guilded. * @example new ServerRole(server, rawRole); */ export declare class ServerRole extends Base<number> { readonly server: Server; readonly raw: { id: number; }; /** * @param server The server the role belongs to. * @param raw The raw data of the role. * @param cache Whether to cache the server role. */ constructor(server: Server, raw: { id: number; }, cache?: boolean); /** Whether the role is cached. */ get isCached(): boolean; /** * Award XP to the role. * @param amount The amount of XP to award to the role. * @example role.awardXp(100); */ awardXp(amount: number): Promise<void>; } //# sourceMappingURL=ServerRole.d.ts.map