mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
Fix formatting
This commit is contained in:
@@ -583,15 +583,16 @@ class RESTMethods {
|
|||||||
}
|
}
|
||||||
|
|
||||||
addMessageReaction(message, emoji) {
|
addMessageReaction(message, emoji) {
|
||||||
return this.rest.makeRequest('put', Constants.Endpoints.selfMessageReaction(message.channel.id, message.id, emoji), true)
|
return this.rest.makeRequest(
|
||||||
.then(() =>
|
'put', Constants.Endpoints.selfMessageReaction(message.channel.id, message.id, emoji), true
|
||||||
this.rest.client.actions.MessageReactionAdd.handle({
|
).then(() =>
|
||||||
user_id: this.rest.client.user.id,
|
this.rest.client.actions.MessageReactionAdd.handle({
|
||||||
message_id: message.id,
|
user_id: this.rest.client.user.id,
|
||||||
emoji: parseEmoji(emoji),
|
message_id: message.id,
|
||||||
channel_id: message.channel.id,
|
emoji: parseEmoji(emoji),
|
||||||
}).reaction
|
channel_id: message.channel.id,
|
||||||
);
|
}).reaction
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
removeMessageReaction(message, emoji, user) {
|
removeMessageReaction(message, emoji, user) {
|
||||||
@@ -615,7 +616,9 @@ class RESTMethods {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getMessageReactionUsers(message, emoji, limit = 100) {
|
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() {
|
getMyApplication() {
|
||||||
@@ -625,8 +628,7 @@ class RESTMethods {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setNote(user, note) {
|
setNote(user, note) {
|
||||||
return this.rest.makeRequest('put', Constants.Endpoints.note(user.id), true, { note })
|
return this.rest.makeRequest('put', Constants.Endpoints.note(user.id), true, { note }).then(() => user);
|
||||||
.then(() => user);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ class MessageEmbedFooter {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
this.iconUrl = data.icon_url;
|
this.iconUrl = data.icon_url;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The proxy icon URL of this footer
|
* The proxy icon URL of this footer
|
||||||
* @type {string}
|
* @type {string}
|
||||||
|
|||||||
Reference in New Issue
Block a user