refactor(helpers/message): divide message arg into channelID & messageID in getReactions() (#662)

This commit is contained in:
ayntee
2021-03-11 22:21:14 +04:00
committed by GitHub
parent fb278c92ad
commit d9e994b4d8

View File

@@ -267,12 +267,13 @@ export async function removeReactionEmoji(
/** Get a list of users that reacted with this emoji. */
export async function getReactions(
message: Message,
channelID: string,
messageID: string,
reaction: string,
options?: DiscordGetReactionsParams,
) {
const users = (await RequestManager.get(
endpoints.CHANNEL_MESSAGE_REACTION(message.channelID, message.id, reaction),
endpoints.CHANNEL_MESSAGE_REACTION(channelID, messageID, reaction),
options,
)) as UserPayload[];