change: prettier code

This commit is contained in:
TriForMine
2021-10-21 16:07:35 +00:00
committed by GitHub Action
parent fe22c5ea73
commit 9a1f8f41a5
14 changed files with 112 additions and 68 deletions
+10 -5
View File
@@ -1,9 +1,9 @@
import type { RequestGuildMembers } from "../../types/members/request_guild_members.ts";
import { Collection } from "../../util/collection.ts";
import type {Bot} from "../../bot.ts";
import {DiscordGatewayIntents} from "../../types/gateway/gateway_intents.ts";
import {DiscordGatewayOpcodes} from "../../types/codes/gateway_opcodes.ts";
import type {DiscordenoMember} from "../../transformers/member.ts";
import type { Bot } from "../../bot.ts";
import { DiscordGatewayIntents } from "../../types/gateway/gateway_intents.ts";
import { DiscordGatewayOpcodes } from "../../types/codes/gateway_opcodes.ts";
import type { DiscordenoMember } from "../../transformers/member.ts";
/**
* ⚠️ BEGINNER DEVS!! YOU SHOULD ALMOST NEVER NEED THIS AND YOU CAN GET FROM cache.members.get()
@@ -13,7 +13,12 @@ import type {DiscordenoMember} from "../../transformers/member.ts";
* REST: 50/s global(across all shards) rate limit with ALL requests this included
* GW(this function): 120/m(PER shard) rate limit. Meaning if you have 8 shards your limit is now 960/m.
*/
export function fetchMembers(bot: Bot, guildId: bigint, shardId: number, options?: Omit<RequestGuildMembers, "guildId">) {
export function fetchMembers(
bot: Bot,
guildId: bigint,
shardId: number,
options?: Omit<RequestGuildMembers, "guildId">
) {
// You can request 1 member without the intent
// Check if intents is not 0 as proxy ws won't set intents in other instances
if (