Webpack build for branch 11.3-dev: 4a9c2f8884

This commit is contained in:
Travis CI 2018-07-26 20:40:05 +00:00
parent a9ef1b6f81
commit 56a9b6a3b8
2 changed files with 2 additions and 2 deletions

View file

@ -7076,7 +7076,7 @@ class Emoji {
* @returns {Promise<User>}
*/
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)
.then(emoji => this.client.dataManager.newUser(emoji.user));
}

File diff suppressed because one or more lines are too long