This commit is contained in:
ayntee
2021-04-12 22:37:40 +04:00
8 changed files with 10 additions and 72 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { rest } from "../../rest/rest.ts";
import { User } from "../../types/users/user.ts";
import { DiscordUser } from "../../types/users/user.ts";
import { Collection } from "../../util/collection.ts";
import { endpoints } from "../../util/constants.ts";
@@ -14,7 +14,7 @@ export async function getReactions(
"get",
endpoints.CHANNEL_MESSAGE_REACTION(channelId, messageId, reaction),
options,
)) as User[];
)) as DiscordUser[];
return new Collection(users.map((user) => [user.id, user]));
}