Skip to content

Conversation

@areodot
Copy link
Contributor

@areodot areodot commented Oct 2, 2024

Application-Level Emojis

DIscord has added application-level emojis.

New

  • Methods to get,create,update and delete application-level emojis.
  • New endpoints that enable interaction with application-level emojis.

Reference

TODO

  • Update the user cache (getEmoji, getEmojis)

lib/Client.js Outdated
* @returns {Promise<Object>} Resolves with an emoji object
*/
getEmoji(emojiID) {
return this.requestHandler.request("GET", Endpoints.APPLICATION_EMOJI(this.application.id, emojiID), true);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update user cache

lib/Client.js Outdated
* @returns {Promise<Array<Object>>} Resolves with an array of emoji objects
*/
getEmojis() {
return this.requestHandler.request("GET", Endpoints.APPLICATION_EMOJIS(this.application.id), true);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update user cache. Also this doesn't directly return an emojis array, it returns an object containing items, which is the array of emojis

index.d.ts Outdated
getDiscoveryCategories(): Promise<DiscoveryCategory[]>;
getDMChannel(userID: string): Promise<DMChannel>;
getEmoji(emojiID: string): Promise<Emoji>;
getEmojis(): Promise<Emoji[]>;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See relevant review

index.d.ts Outdated
image: string;
}
interface ApplicationEmojis {
items: ApplicationEmojiOptions[];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This returns an array of emojis, not something we send to discord

@bsian03 bsian03 merged commit ae295d0 into abalabahaha:dev Dec 13, 2024
@areodot areodot deleted the app-emojis branch December 14, 2024 10:13
@areodot areodot changed the title Added support for application emojis feat(Application): Support application emojis Dec 20, 2024
flav-code added a commit to flavibot/eris that referenced this pull request Mar 20, 2025
feat(Application): Support application emojis (abalabahaha#1559)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants