mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
Merge branch 'main' of https://github.com/discordeno/discordeno into main
This commit is contained in:
@@ -2,13 +2,14 @@ import { rest } from "../../rest/rest.ts";
|
|||||||
import { DiscordUser } from "../../types/users/user.ts";
|
import { DiscordUser } from "../../types/users/user.ts";
|
||||||
import { Collection } from "../../util/collection.ts";
|
import { Collection } from "../../util/collection.ts";
|
||||||
import { endpoints } from "../../util/constants.ts";
|
import { endpoints } from "../../util/constants.ts";
|
||||||
|
import {GetReactions} from "../../types/messages/message_get_reactions.ts";
|
||||||
|
|
||||||
/** Get a list of users that reacted with this emoji. */
|
/** Get a list of users that reacted with this emoji. */
|
||||||
export async function getReactions(
|
export async function getReactions(
|
||||||
channelId: string,
|
channelId: string,
|
||||||
messageId: string,
|
messageId: string,
|
||||||
reaction: string,
|
reaction: string,
|
||||||
options?: DiscordGetReactions,
|
options?: GetReactions,
|
||||||
) {
|
) {
|
||||||
const users = (await rest.runMethod(
|
const users = (await rest.runMethod(
|
||||||
"get",
|
"get",
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
export interface GetReactions {
|
||||||
|
/** Get users before this user Id */
|
||||||
|
before?: string;
|
||||||
|
/** Get users after this user Id */
|
||||||
|
after?: string;
|
||||||
|
/** Max number of users to return (1-100) */
|
||||||
|
limit?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** https://discord.com/developers/docs/resources/channel#get-reactions-query-string-params */
|
||||||
|
export type DiscordGetReactions = GetReactions;
|
||||||
Reference in New Issue
Block a user