mirror of
https://github.com/danbulant/discord.js
synced 2026-07-07 20:20:55 +00:00
Webpack build for branch 11.3-dev: 4a9c2f8884
This commit is contained in:
parent
a9ef1b6f81
commit
56a9b6a3b8
2 changed files with 2 additions and 2 deletions
|
|
@ -7076,7 +7076,7 @@ class Emoji {
|
||||||
* @returns {Promise<User>}
|
* @returns {Promise<User>}
|
||||||
*/
|
*/
|
||||||
fetchAuthor() {
|
fetchAuthor() {
|
||||||
if (this.managed) return Promise.reject(new TypeError('Emoji is managed and has no Author.'));
|
if (this.managed) return Promise.reject(new Error('Emoji is managed and has no Author.'));
|
||||||
return this.client.rest.makeRequest('get', Constants.Endpoints.Guild(this.guild).Emoji(this.id), true)
|
return this.client.rest.makeRequest('get', Constants.Endpoints.Guild(this.guild).Emoji(this.id), true)
|
||||||
.then(emoji => this.client.dataManager.newUser(emoji.user));
|
.then(emoji => this.client.dataManager.newUser(emoji.user));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
discord.11.3-dev.min.js
vendored
2
discord.11.3-dev.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue