class ApplicationsAPI

export declare class ApplicationsAPI

Constructors

constructor(
rest: REST
)

Constructs a new instance of the ApplicationsAPI class

createEmoji(
applicationId: Snowflake
options?: Pick<RequestData, 'signal'>
) : Promise<APIEmoji>

Creates a new emoji of an application

See also: https://discord.com/developers/docs/resources/emoji#create-application-emoji

deleteEmoji(
applicationId: Snowflake
emojiId: Snowflake
options?: Pick<RequestData, 'signal'>
) : Promise<void>

Deletes an emoji of an application

See also: https://discord.com/developers/docs/resources/emoji#delete-application-emoji

Edits properties of the application associated with the requesting bot user.

See also: https://discord.com/developers/docs/resources/application#edit-current-application

editEmoji(
applicationId: Snowflake
emojiId: Snowflake
options?: Pick<RequestData, 'signal'>
) : Promise<APIEmoji>

Edits an emoji of an application

See also: https://discord.com/developers/docs/resources/emoji#modify-application-emoji

getCurrent(
options?: Pick<RequestData, 'signal'>
) : Promise<APIApplication>

Fetches the application associated with the requesting bot user.

See also: https://discord.com/developers/docs/resources/application#get-current-application

getEmoji(
applicationId: Snowflake
emojiId: Snowflake
options?: Pick<RequestData, 'signal'>
) : Promise<APIEmoji>

Fetches an emoji of an application

See also: https://discord.com/developers/docs/resources/emoji#get-application-emoji

getEmojis(
applicationId: Snowflake
options?: Pick<RequestData, 'signal'>
) : Promise<RESTGetAPIApplicationEmojisResult>

Fetches all emojis of an application

See also: https://discord.com/developers/docs/resources/emoji#list-application-emojis