Skip to content

Commit

Permalink
docs: fix typos (#9127)
Browse files Browse the repository at this point in the history
* docs: fix typos

* indicies -> indices

* rename file

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
Lioness100 and kodiakhq[bot] authored Feb 17, 2023
1 parent 6f78e82 commit 1ba1f23
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build:prod": "yarn workspaces foreach -ptR run build && yarn build:copy_readme && yarn build:css && yarn build:next",
"build:next": "next build",
"build:css": "yarn generate:css",
"build:search_indicies": "yarn node scripts/generateAllIndicies.js",
"build:search_indices": "yarn node scripts/generateAllIndices.js",
"build:analyze": "yarn run --top-level docs --force && cross-env-shell ANALYZE=true NEXT_PUBLIC_LOCAL_DEV=true yarn build:prod",
"dev": "yarn run --top-level docs && concurrently 'yarn dev:css' 'yarn dev:next'",
"dev:next": "next dev",
Expand Down
5 changes: 5 additions & 0 deletions apps/website/scripts/generateAllIndices.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { generateAllIndices } from '@discordjs/scripts';

console.log('Generating all indices...');
await generateAllIndices();
console.log('Generated all indices.');
5 changes: 0 additions & 5 deletions apps/website/scripts/generateAllIndicies.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/GuildAuditLogsEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class GuildAuditLogsEntry {
this.actionType = GuildAuditLogsEntry.actionType(data.action_type);

/**
* The type of action that occured.
* The type of action that occurred.
* @type {AuditLogEvent}
*/
this.action = data.action_type;
Expand Down
2 changes: 1 addition & 1 deletion packages/proxy/src/handlers/proxyRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function proxyRequests(rest: REST): RequestHandler {
} else if (error instanceof Error && error.name === 'AbortError') {
populateAbortErrorResponse(res);
} else {
// Unclear if there's better course of action here for unknown erorrs. Any web framework allows to pass in an error handler for something like this
// Unclear if there's better course of action here for unknown errors. Any web framework allows to pass in an error handler for something like this
// at which point the user could dictate what to do with the error - otherwise we could just 500
throw error;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/rest/__tests__/RequestHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ test('Handle unexpected 429', async () => {
const previous = performance.now();
let firstResolvedTime: number;
let secondResolvedTime: number;
const unexepectedSublimit = api.get('/unexpected').then((res) => {
const unexpectedSublimit = api.get('/unexpected').then((res) => {
firstResolvedTime = performance.now();
return res;
});
Expand All @@ -369,7 +369,7 @@ test('Handle unexpected 429', async () => {
return res;
});

expect(await unexepectedSublimit).toStrictEqual({ test: true });
expect(await unexpectedSublimit).toStrictEqual({ test: true });
expect(await queuedSublimit).toStrictEqual({ test: true });
expect(performance.now()).toBeGreaterThanOrEqual(previous + 1_000);
// @ts-expect-error: This is intentional
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/src/generateIndex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export async function generateIndex(model: ApiModel, packageName: string, tag =
);
}

export async function generateAllIndicies() {
export async function generateAllIndices() {
for (const pkg of PACKAGES) {
const response = await request(`https://docs.discordjs.dev/api/info?package=${pkg}`);
const versions = await response.body.json();
Expand Down
2 changes: 1 addition & 1 deletion packages/ws/src/utils/WorkerBootstrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface BootstrapOptions {
}

/**
* Utility class for bootstraping a worker thread to be used for sharding
* Utility class for bootstrapping a worker thread to be used for sharding
*/
export class WorkerBootstrapper {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/ws/src/ws/WebSocketShard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ export class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap> {
}

case GatewayCloseCodes.UnknownError: {
this.debug([`An unknown error occured: ${code}`]);
this.debug([`An unknown error occurred: ${code}`]);
return this.destroy({ code, recover: WebSocketShardDestroyRecovery.Resume });
}

Expand Down

2 comments on commit 1ba1f23

@vercel
Copy link

@vercel vercel bot commented on 1ba1f23 Feb 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 1ba1f23 Feb 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.