UNPKG

oceanic.js

Version:

A NodeJS library for interfacing with Discord.

31 lines (30 loc) 1.28 kB
/** @module PartialApplication */ import Base from "./Base"; import type Client from "../Client"; import type { ImageFormat } from "../Constants"; import type { RawPartialApplication } from "../types/applications"; import type { JSONPartialApplication } from "../types/json"; /** Represents a partial application. */ export default class PartialApplication extends Base { /** When false, only the application's owners can invite the bot to guilds. */ botPublic?: boolean; /** When true, the applications bot will only join upon the completion of the full oauth2 code grant flow. */ botRequireCodeGrant?: boolean; /** The description of the application. */ description: string; /** The icon hash of the application. */ icon: string | null; /** The name of the application. */ name: string; /** The bot's hex encoded public key. */ verifyKey?: string; constructor(data: RawPartialApplication, client: Client); protected update(data: RawPartialApplication): void; /** * The url of this application's icon. * @param format The format the url should be. * @param size The dimensions of the image. */ iconURL(format?: ImageFormat, size?: number): string | null; toJSON(): JSONPartialApplication; }