Skip to content

Commit

Permalink
Fix removeMessageReaction deprecations (#1094)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsian03 authored Mar 24, 2021
1 parent 1381bba commit 148a578
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
15 changes: 4 additions & 11 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ declare namespace Eris {
getMessages(limit?: number, before?: string, after?: string, around?: string): Promise<Message[]>;
getPins(): Promise<Message[]>;
pinMessage(messageID: string): Promise<void>;
removeMessageReaction(messageID: string, reaction: string, userID: string): Promise<void>;
removeMessageReaction(messageID: string, reaction: string): Promise<void>;
removeMessageReaction(messageID: string, reaction: string, userID?: string): Promise<void>;
sendTyping(): Promise<void>;
unpinMessage(messageID: string): Promise<void>;
unsendMessage(messageID: string): Promise<void>;
Expand Down Expand Up @@ -1581,9 +1580,7 @@ declare namespace Eris {
): Promise<number>;
removeGroupRecipient(groupID: string, userID: string): Promise<void>;
removeGuildMemberRole(guildID: string, memberID: string, roleID: string, reason?: string): Promise<void>;
removeMessageReaction(channelID: string, messageID: string, reaction: string): Promise<void>;
/** @deprecated */
removeMessageReaction(channelID: string, messageID: string, reaction: string, userID: string): Promise<void>;
removeMessageReaction(channelID: string, messageID: string, reaction: string, userID?: string): Promise<void>;
removeMessageReactionEmoji(channelID: string, messageID: string, reaction: string): Promise<void>;
removeMessageReactions(channelID: string, messageID: string): Promise<void>;
removeRelationship(userID: string): Promise<void>;
Expand Down Expand Up @@ -2057,9 +2054,7 @@ declare namespace Eris {
editWebhook(token: string, options: MessageWebhookContent): Promise<Message<T>>;
getReaction(reaction: string, limit?: number, before?: string, after?: string): Promise<User[]>;
pin(): Promise<void>;
removeReaction(reaction: string): Promise<void>;
/** @deprecated */
removeReaction(reaction: string, userID: string): Promise<void>;
removeReaction(reaction: string, userID?: string): Promise<void>;
removeReactionEmoji(reaction: string): Promise<void>;
removeReactions(): Promise<void>;
unpin(): Promise<void>;
Expand Down Expand Up @@ -2314,9 +2309,7 @@ declare namespace Eris {
getWebhooks(): Promise<Webhook[]>;
pinMessage(messageID: string): Promise<void>;
purge(limit: number, filter?: (message: Message<this>) => boolean, before?: string, after?: string, reason?: string): Promise<number>;
removeMessageReaction(messageID: string, reaction: string): Promise<void>;
/** @deprecated */
removeMessageReaction(messageID: string, reaction: string, userID: string): Promise<void>;
removeMessageReaction(messageID: string, reaction: string, userID?: string): Promise<void>;
removeMessageReactionEmoji(messageID: string, reaction: string): Promise<void>;
removeMessageReactions(messageID: string): Promise<void>;
sendTyping(): Promise<void>;
Expand Down
2 changes: 1 addition & 1 deletion lib/structures/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ class Message extends Base {
/**
* Remove a reaction from a message
* @arg {String} reaction The reaction (Unicode string if Unicode emoji, `emojiName:emojiID` if custom emoji)
* @arg {String} [userID="@me"] The ID of the user to remove the reaction for. Passing this parameter is deprecated and will not be supported in future versions.
* @arg {String} [userID="@me"] The ID of the user to remove the reaction for.
* @returns {Promise}
*/
removeReaction(reaction, userID) {
Expand Down

0 comments on commit 148a578

Please sign in to comment.