mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
Format files
This commit is contained in:
@@ -8,14 +8,14 @@ import { camelKeysToSnakeCase } from "../../util/utils.ts";
|
||||
export async function ban(
|
||||
guildId: string,
|
||||
id: string,
|
||||
options: CreateGuildBan
|
||||
options: CreateGuildBan,
|
||||
) {
|
||||
await requireBotGuildPermissions(guildId, ["BAN_MEMBERS"]);
|
||||
|
||||
const result = await rest.runMethod(
|
||||
"put",
|
||||
endpoints.GUILD_BAN(guildId, id),
|
||||
camelKeysToSnakeCase(options)
|
||||
camelKeysToSnakeCase(options),
|
||||
);
|
||||
|
||||
return result;
|
||||
|
||||
@@ -10,7 +10,10 @@ import {
|
||||
requireBotChannelPermissions,
|
||||
requireBotGuildPermissions,
|
||||
} from "../../util/permissions.ts";
|
||||
import { camelKeysToSnakeCase, snakeKeysToCamelCase } from "../../util/utils.ts";
|
||||
import {
|
||||
camelKeysToSnakeCase,
|
||||
snakeKeysToCamelCase,
|
||||
} from "../../util/utils.ts";
|
||||
|
||||
/** Edit the member */
|
||||
export async function editMember(
|
||||
|
||||
@@ -16,7 +16,7 @@ import { Collection } from "../../util/collection.ts";
|
||||
export function fetchMembers(
|
||||
guildId: string,
|
||||
shardId: number,
|
||||
options?: RequestGuildMembers
|
||||
options?: RequestGuildMembers,
|
||||
) {
|
||||
// You can request 1 member without the intent
|
||||
if (
|
||||
@@ -41,9 +41,9 @@ function requestAllMembers(
|
||||
resolve: (
|
||||
value:
|
||||
| Collection<string, DiscordenoMember>
|
||||
| PromiseLike<Collection<string, DiscordenoMember>>
|
||||
| PromiseLike<Collection<string, DiscordenoMember>>,
|
||||
) => void,
|
||||
options: any
|
||||
options: any,
|
||||
): void {
|
||||
throw new Error("Function not implemented.");
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ import { Collection } from "../../util/collection.ts";
|
||||
export async function getMembersByQuery(
|
||||
guildId: string,
|
||||
name: string,
|
||||
limit = 1
|
||||
limit = 1,
|
||||
) {
|
||||
const guild = await cacheHandlers.get("guilds", guildId);
|
||||
if (!guild) return;
|
||||
@@ -28,9 +28,9 @@ function requestAllMembers(
|
||||
resolve: (
|
||||
value:
|
||||
| Collection<string, DiscordenoMember>
|
||||
| PromiseLike<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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user