This commit is contained in:
ITOH
2021-04-15 18:06:31 +02:00
parent 6a6acf2d6c
commit 98bf292aff
27 changed files with 94 additions and 141 deletions
+4 -4
View File
@@ -37,15 +37,15 @@ export function fetchMembers(
// TODO: finish implementing this
function requestAllMembers(
guildId: string,
shardId: number,
resolve: (
_guildId: string,
_shardId: number,
_resolve: (
value:
| Collection<string, DiscordenoMember>
| PromiseLike<Collection<string, DiscordenoMember>>,
) => void,
// deno-lint-ignore no-explicit-any
options: any,
_options: any,
): void {
throw new Error("Function not implemented.");
}
+1 -4
View File
@@ -1,10 +1,7 @@
import { cacheHandlers } from "../../cache.ts";
import { rest } from "../../rest/rest.ts";
import { structures } from "../../structures/mod.ts";
import {
DiscordGuildMember,
DiscordGuildMemberWithUser,
} from "../../types/guilds/guild_member.ts";
import { DiscordGuildMemberWithUser } from "../../types/guilds/guild_member.ts";
import { endpoints } from "../../util/constants.ts";
/** Returns a guild member object for the specified user.
-1
View File
@@ -7,7 +7,6 @@ import { DiscordGatewayIntents } from "../../types/gateway/gateway_intents.ts";
import {
DiscordGuildMember,
DiscordGuildMemberWithUser,
GuildMember,
} from "../../types/guilds/guild_member.ts";
import { ListGuildMembers } from "../../types/guilds/list_guild_members.ts";
import { Errors } from "../../types/misc/errors.ts";
+5 -4
View File
@@ -22,15 +22,16 @@ export async function getMembersByQuery(
}) as Promise<Collection<string, DiscordenoMember>>;
}
// TODO: implement this
function requestAllMembers(
id: string,
shardId: number,
resolve: (
_id: string,
_shardId: number,
_resolve: (
value:
| Collection<string, DiscordenoMember>
| PromiseLike<Collection<string, DiscordenoMember>>,
) => void,
arg3: { query: string; limit: number },
_arg3: { query: string; limit: number },
): void {
throw new Error("Function not implemented.");
}