-
Notifications
You must be signed in to change notification settings - Fork 417
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
Added support for application emojis #1559
base: dev
Are you sure you want to change the base?
Conversation
@@ -702,6 +702,13 @@ declare namespace Eris { | |||
image: string; | |||
roles?: string[]; | |||
} | |||
interface 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.
Can extend Edit options
* @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
* @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
@@ -2206,6 +2216,8 @@ declare namespace Eris { | |||
getCommands(): Promise<ApplicationCommand<false>[]>; | |||
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
Application Emojis
This simple pull request adds support for application emojis discord/discord-api-docs#7010 .