Application
Due to current limitations, this is exclusively for the current application.
Signature
export declare class Application extends DiscordBase<APIApplication>Properties
32emojisidcreatedTimestampcreatedAtclientnameicondescriptionrpcOriginsbotPublicbotRequireCodeGrantbottermsOfServiceUrlprivacyPolicyUrlownerverifyKeyteamguildIdguildprimarySkuIdslugcoverImageflagsapproximateGuildCountapproximateUserInstallCountredirectUrisinteractionsEndpointUrlroleConnectionsVerificationUrltagsinstallParamsintegrationTypesConfigcustomInstallUrl
Methods
4Properties
emojis: { fetch: (id: string) => Promise<ApplicationEmojiStructure>; list: () => Promise<ApplicationEmojiStructure[]>; create: (data: ApplicationEmojiResolvable) => Promise<ApplicationEmojiStructure>; edit: (emojiId: string, body: RESTPatchAPIApplicationEmojiJSONBody) => Promise<ApplicationEmojiStructure>;};id: string;createdTimestampGetterget createdTimestamp(): number;Create a timestamp for the current object.
createdAtGetterget createdAt(): Date;createdAt gets the creation Date instace of the current object.
readonly client: UsingClient;name: string;icon: string | null;description: string;rpcOrigins?: string[] | undefined;botPublic: boolean;botRequireCodeGrant: boolean;bot?: { id: string; username: string; discriminator: string; globalName: string | null; avatar: string | null; bot?: boolean | undefined; system?: boolean | undefined; mfaEnabled?: boolean | undefined; banner?: string | null | undefined; accentColor?: number | null | undefined; locale?: string | undefined; verified?: boolean | undefined; email?: string | null | undefined; flags?: UserFlags | undefined; premiumType?: UserPremiumType | undefined; publicFlags?: UserFlags | undefined; avatarDecorationData?: APIAvatarDecorationData | null | undefined; collectibles?: APICollectibles | null | undefined; primaryGuild?: APIUserPrimaryGuild | null | undefined; } | undefined;termsOfServiceUrl?: string | undefined;privacyPolicyUrl?: string | undefined;owner?: { id: string; username: string; discriminator: string; globalName: string | null; avatar: string | null; bot?: boolean | undefined; system?: boolean | undefined; mfaEnabled?: boolean | undefined; banner?: string | null | undefined; accentColor?: number | null | undefined; locale?: string | undefined; verified?: boolean | undefined; email?: string | null | undefined; flags?: UserFlags | undefined; premiumType?: UserPremiumType | undefined; publicFlags?: UserFlags | undefined; avatarDecorationData?: APIAvatarDecorationData | null | undefined; collectibles?: APICollectibles | null | undefined; primaryGuild?: APIUserPrimaryGuild | null | undefined; } | undefined;verifyKey: string;team: { icon: string | null; id: string; members: { membershipState: TeamMemberMembershipState; teamId: string; user: { id: string; username: string; discriminator: string; globalName: string | null; avatar: string | null; bot?: boolean | undefined; system?: boolean | undefined; mfaEnabled?: boolean | undefined; banner?: string | null | undefined; accentColor?: number | null | undefined; locale?: string | undefined; verified?: boolean | undefined; email?: string | null | undefined; flags?: UserFlags | undefined; premiumType?: UserPremiumType | undefined; publicFlags?: UserFlags | undefined; avatarDecorationData?: { asset: string; skuId: string; } | null | undefined; collectibles?: { nameplate?: APINameplateData | undefined; } | null | undefined; primaryGuild?: { identityGuildId: string | null; identityEnabled: boolean | null; tag: string | null; badge: string | null; } | null | undefined; }; role: TeamMemberRole; }[]; name: string; ownerUserId: string; } | null;guildId?: string | undefined;guild?: { name: string; icon: string | null; splash: string | null; banner?: string | null | undefined; description?: string | null | undefined; features?: GuildFeature[] | undefined; verificationLevel?: GuildVerificationLevel | undefined; vanityUrlCode?: string | null | undefined; id: string; welcomeScreen?: APIGuildWelcomeScreen | undefined; } | undefined;primarySkuId?: string | undefined;slug?: string | undefined;coverImage?: string | undefined;flags: ApplicationFlags;approximateGuildCount?: number | undefined;approximateUserInstallCount?: number | undefined;redirectUris?: string[] | undefined;interactionsEndpointUrl?: string | null | undefined;roleConnectionsVerificationUrl?: string | null | undefined;tags?: string[] | undefined;installParams?: { scopes: OAuth2Scopes[]; permissions: string; } | undefined;integrationTypesConfig?: { 0?: APIApplicationIntegrationTypeConfiguration | undefined; 1?: APIApplicationIntegrationTypeConfiguration | undefined; } | undefined;customInstallUrl?: string | undefined;Methods
constructorConstructorconstructor(client: UsingClient, data: APIApplication);fetch(): Promise<ApplicationStructure>;Fetch the current application.
edit(data: RESTPatchCurrentApplicationJSONBody): Promise<ApplicationStructure>;Edit the current application.
getActivityInstance(instanceId: string): Promise<RestGetAPIApplicationActivityInstanceResult>;Get an activity instance.