From 49fdc331a7f9f5ce1f93135c6acb048e6bf00d3b Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Thu, 17 Nov 2016 02:49:24 -0500 Subject: [PATCH] Fix formatting --- src/client/rest/RESTMethods.js | 26 ++++++++++++++------------ src/structures/MessageEmbed.js | 2 +- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/client/rest/RESTMethods.js b/src/client/rest/RESTMethods.js index cadaee76a..be35d7d20 100644 --- a/src/client/rest/RESTMethods.js +++ b/src/client/rest/RESTMethods.js @@ -583,15 +583,16 @@ class RESTMethods { } addMessageReaction(message, emoji) { - return this.rest.makeRequest('put', Constants.Endpoints.selfMessageReaction(message.channel.id, message.id, emoji), true) - .then(() => - this.rest.client.actions.MessageReactionAdd.handle({ - user_id: this.rest.client.user.id, - message_id: message.id, - emoji: parseEmoji(emoji), - channel_id: message.channel.id, - }).reaction - ); + return this.rest.makeRequest( + 'put', Constants.Endpoints.selfMessageReaction(message.channel.id, message.id, emoji), true + ).then(() => + this.rest.client.actions.MessageReactionAdd.handle({ + user_id: this.rest.client.user.id, + message_id: message.id, + emoji: parseEmoji(emoji), + channel_id: message.channel.id, + }).reaction + ); } removeMessageReaction(message, emoji, user) { @@ -615,7 +616,9 @@ class RESTMethods { } getMessageReactionUsers(message, emoji, limit = 100) { - return this.rest.makeRequest('get', Constants.Endpoints.messageReaction(message.channel.id, message.id, emoji, limit), true); + return this.rest.makeRequest( + 'get', Constants.Endpoints.messageReaction(message.channel.id, message.id, emoji, limit), true + ); } getMyApplication() { @@ -625,8 +628,7 @@ class RESTMethods { } setNote(user, note) { - return this.rest.makeRequest('put', Constants.Endpoints.note(user.id), true, { note }) - .then(() => user); + return this.rest.makeRequest('put', Constants.Endpoints.note(user.id), true, { note }).then(() => user); } } diff --git a/src/structures/MessageEmbed.js b/src/structures/MessageEmbed.js index 0cd071408..43469c350 100644 --- a/src/structures/MessageEmbed.js +++ b/src/structures/MessageEmbed.js @@ -251,7 +251,7 @@ class MessageEmbedFooter { * @type {string} */ this.iconUrl = data.icon_url; - + /** * The proxy icon URL of this footer * @type {string}