From e5a562ec80caab9444df19bd44f4571ba379272e Mon Sep 17 00:00:00 2001 From: ayntee Date: Fri, 20 Nov 2020 14:24:10 +0400 Subject: [PATCH 1/2] ci: remove gatsby workflow --- .github/workflows/gatsby.yml | 37 ------------------------------------ 1 file changed, 37 deletions(-) delete mode 100644 .github/workflows/gatsby.yml diff --git a/.github/workflows/gatsby.yml b/.github/workflows/gatsby.yml deleted file mode 100644 index 2c0b43575..000000000 --- a/.github/workflows/gatsby.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Gatsby GH Pages - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - deploy: - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v2 - - - name: Setup Node - uses: actions/setup-node@v2.1.2 - with: - node-version: '12.x' - - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- - - - run: cd docs && npm ci && npm run format && npm run test && npm run build - - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - personal_token: ${{ secrets.ACCESS_TOKEN }} - cname: discordeno.js.org - user_name: 'github-actions[bot]' - user_email: 'github-actions[bot]@users.noreply.github.com' - publish_dir: ./docs/public From 28dfef018f597d0ca941948ed6dedb9d3703737a Mon Sep 17 00:00:00 2001 From: ayntee Date: Fri, 20 Nov 2020 15:33:53 +0400 Subject: [PATCH 2/2] style: format src files --- src/controllers/misc.ts | 4 +++- src/module/client.ts | 2 +- src/structures/member.ts | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/controllers/misc.ts b/src/controllers/misc.ts index a61a278db..2a950a420 100644 --- a/src/controllers/misc.ts +++ b/src/controllers/misc.ts @@ -34,7 +34,9 @@ export async function handleInternalReady( // All the members that came in on guild creates should now be processed 1 by 1 for (const [guildID, members] of initialMemberLoadQueue.entries()) { - await Promise.all(members.map(member => structures.createMember(member, guildID))) + await Promise.all( + members.map((member) => structures.createMember(member, guildID)), + ); } } diff --git a/src/module/client.ts b/src/module/client.ts index aa677eb16..21ab49219 100644 --- a/src/module/client.ts +++ b/src/module/client.ts @@ -94,7 +94,7 @@ export async function startBigBrainBot(data: BigBrainBotOptions) { endpoints.GATEWAY_BOT, ) as DiscordBotGatewayData; - if (!data.wsURL) proxyWSURL = botGatewayData.url + if (!data.wsURL) proxyWSURL = botGatewayData.url; spawnShards( botGatewayData, identifyPayload, diff --git a/src/structures/member.ts b/src/structures/member.ts index 013733003..917713dc7 100644 --- a/src/structures/member.ts +++ b/src/structures/member.ts @@ -36,7 +36,7 @@ export async function createMember(data: MemberCreatePayload, guildID: string) { const cached = await cacheHandlers.get("members", user.id); if (cached) { for (const [id, guild] of cached.guilds.entries()) { - member.guilds.set(id, guild) + member.guilds.set(id, guild); } }