mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 01:40:08 +00:00
refactor(helpers/message): divide message arg into channelID & messageID in getReactions() (#662)
This commit is contained in:
@@ -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[];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user