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
+7 -3
View File
@@ -1,6 +1,6 @@
import type { GuildMemberWithUser } from "../../types/members/guild_member.ts";
import type {Bot} from "../../bot.ts";
import type {SnakeCasedPropertiesDeep} from "../../types/util.ts";
import type { Bot } from "../../bot.ts";
import type { SnakeCasedPropertiesDeep } from "../../types/util.ts";
/** Returns a guild member object for the specified user.
*
@@ -10,7 +10,11 @@ export async function getMember(bot: Bot, guildId: bigint, id: bigint, options?:
const guild = await bot.cache.guilds.get(guildId);
if (!guild && !options?.force) return;
const data = await bot.rest.runMethod<SnakeCasedPropertiesDeep<GuildMemberWithUser>>(bot.rest,"get", bot.constants.endpoints.GUILD_MEMBER(guildId, id));
const data = await bot.rest.runMethod<SnakeCasedPropertiesDeep<GuildMemberWithUser>>(
bot.rest,
"get",
bot.constants.endpoints.GUILD_MEMBER(guildId, id)
);
const discordenoMember = await bot.transformers.member(bot, data, guildId);
await bot.cache.members.set(discordenoMember.id, discordenoMember);