refactor: cleanup and fmt

This commit is contained in:
Skillz4Killz
2021-04-04 12:54:33 +00:00
committed by GitHub
parent 535f27c734
commit 1b8161e85b
26 changed files with 89 additions and 480 deletions
+4 -5
View File
@@ -15,11 +15,10 @@ export async function getMember(
const guild = await cacheHandlers.get("guilds", guildId);
if (!guild && !options?.force) return;
const data =
(await rest.runMethod(
"get",
endpoints.GUILD_MEMBER(guildId, id),
)) as MemberCreatePayload;
const data = (await rest.runMethod(
"get",
endpoints.GUILD_MEMBER(guildId, id),
)) as MemberCreatePayload;
const memberStruct = await structures.createMemberStruct(data, guildId);
await cacheHandlers.set("members", memberStruct.id, memberStruct);