mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 03:18:17 +00:00
fix mod.ts export (#2121)
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
export * from "./avatarUrl.ts";
|
||||
export * from "./banMember.ts";
|
||||
export * from "./editBotNickname.ts";
|
||||
export * from "./editMember.ts";
|
||||
export * from "./fetchMembers.ts";
|
||||
export * from "./getDmChannel.ts";
|
||||
export * from "./getMember.ts";
|
||||
export * from "./getMembers.ts";
|
||||
export * from "./kickMember.ts";
|
||||
export * from "./pruneMembers.ts";
|
||||
export * from "./searchMembers.ts";
|
||||
export * from "./unbanMember.ts";
|
||||
@@ -1,5 +1,6 @@
|
||||
import type { GuildMemberWithUser } from "../../types/members/guildMember.ts";
|
||||
import type { SearchGuildMembers } from "../../types/members/searchGuildMembers.ts";
|
||||
import type { SearchMembers } from "../../types/discordeno.ts";
|
||||
import type { DiscordMemberWithUser } from "../../types/discord.ts";
|
||||
|
||||
import { Collection } from "../../util/collection.ts";
|
||||
import { Bot } from "../../bot.ts";
|
||||
|
||||
@@ -10,7 +11,7 @@ export async function searchMembers(
|
||||
bot: Bot,
|
||||
guildId: bigint,
|
||||
query: string,
|
||||
options?: Omit<SearchGuildMembers, "query">,
|
||||
options?: Omit<SearchMembers, "query">,
|
||||
) {
|
||||
if (options?.limit) {
|
||||
if (options.limit < 1) throw new Error(bot.constants.Errors.MEMBER_SEARCH_LIMIT_TOO_LOW);
|
||||
@@ -19,7 +20,7 @@ export async function searchMembers(
|
||||
}
|
||||
}
|
||||
|
||||
const result = await bot.rest.runMethod<GuildMemberWithUser[]>(
|
||||
const result = await bot.rest.runMethod<DiscordMemberWithUser[]>(
|
||||
bot.rest,
|
||||
"get",
|
||||
bot.constants.endpoints.GUILD_MEMBERS_SEARCH(guildId),
|
||||
|
||||
Reference in New Issue
Block a user