mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 01:40:08 +00:00
Merge branch 'next' of https://github.com/Skillz4Killz/Discordeno into stickers
This commit is contained in:
37
.github/workflows/gatsby.yml
vendored
37
.github/workflows/gatsby.yml
vendored
@@ -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
|
||||
@@ -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)),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user