fix: more missing typings and remove swap roles

This commit is contained in:
Skillz4Killz
2021-04-12 18:35:24 +00:00
committed by GitHub
parent 79a0c7ae95
commit a741e721f3
5 changed files with 2 additions and 66 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import { rest } from "../../rest/rest.ts";
import { DiscordUser } from "../../types/users/user.ts";
import { Collection } from "../../util/collection.ts";
import { endpoints } from "../../util/constants.ts";
@@ -13,7 +14,7 @@ export async function getReactions(
"get",
endpoints.CHANNEL_MESSAGE_REACTION(channelId, messageId, reaction),
options,
)) as UserPayload[];
)) as DiscordUser[];
return new Collection(users.map((user) => [user.id, user]));
}