-
Notifications
You must be signed in to change notification settings - Fork 414
feat(Application): Support application emojis #1559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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[]>; |
There was a problem hiding this comment.
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[]; |
There was a problem hiding this comment.
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
feat(Application): Support application emojis (abalabahaha#1559)
Application-Level Emojis
DIscord has added application-level emojis.
New
Reference
TODO