Merge branch 'next' of https://github.com/Skillz4Killz/Discordeno into stickers

This commit is contained in:
ayntee
2020-11-20 15:34:12 +04:00
4 changed files with 5 additions and 40 deletions

View File

@@ -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

View File

@@ -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)),
);
}
}

View File

@@ -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,

View File

@@ -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);
}
}