ApplicationsAPI

export declare class ApplicationsAPI
export declare class ApplicationsAPI

No summary provided.

constructor(rest)
Constructs a new instance of the ApplicationsAPI class
NameTypeOptionalDescription
restRESTNoNone
createEmoji(applicationId, body, options?):Promise<APIEmoji>
NameTypeOptionalDescription
applicationIdSnowflakeNoThe id of the application to create the emoji of
bodyRESTPostAPIApplicationEmojiJSONBodyNoThe data for creating the emoji
optionsPick<RequestData, 'signal'>YesThe options for creating the emoji
deleteEmoji(applicationId, emojiId, options?):Promise<void>
NameTypeOptionalDescription
applicationIdSnowflakeNoThe id of the application to delete the emoji of
emojiIdSnowflakeNoThe id of the emoji to delete
optionsPick<RequestData, 'signal'>YesThe options for deleting the emoji
editCurrent(body, options?):Promise<APIApplication>
Edits properties of the application associated with the requesting bot user.
NameTypeOptionalDescription
bodyRESTPatchCurrentApplicationJSONBodyNoThe new application data
optionsPick<RequestData, 'signal'>YesThe options for editing the application
editEmoji(applicationId, emojiId, body, options?):Promise<APIEmoji>
NameTypeOptionalDescription
applicationIdSnowflakeNoThe id of the application to edit the emoji of
emojiIdSnowflakeNoThe id of the emoji to edit
bodyRESTPatchAPIApplicationEmojiJSONBodyNoThe data for editing the emoji
optionsPick<RequestData, 'signal'>YesThe options for editing the emoji
getCurrent(options?):Promise<APIApplication>
Fetches the application associated with the requesting bot user.
NameTypeOptionalDescription
optionsPick<RequestData, 'signal'>YesThe options for fetching the application
getEmoji(applicationId, emojiId, options?):Promise<APIEmoji>
NameTypeOptionalDescription
applicationIdSnowflakeNoThe id of the application to fetch the emoji of
emojiIdSnowflakeNoThe id of the emoji to fetch
optionsPick<RequestData, 'signal'>YesThe options for fetching the emoji
getEmojis(applicationId, options?):Promise<RESTGetAPIApplicationEmojisResult>
NameTypeOptionalDescription
applicationIdSnowflakeNoThe id of the application to fetch the emojis of
optionsPick<RequestData, 'signal'>YesThe options for fetching the emojis