From 388783d7dd718aae519801b90aa781d07b7fb64e Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Fri, 29 Nov 2024 17:39:24 +0000 Subject: [PATCH] docs: Typos (#10628) chore: typos Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .../builders/__tests__/interactions/ContextMenuCommands.test.ts | 2 +- packages/core/src/api/interactions.ts | 2 +- .../src/client/websocket/handlers/VOICE_CHANNEL_EFFECT_SEND.js | 2 +- packages/discord.js/src/sharding/ShardClientUtil.js | 2 +- packages/discord.js/src/sharding/ShardingManager.js | 2 +- packages/discord.js/src/structures/ThreadOnlyChannel.js | 2 +- packages/voice/README.md | 2 +- packages/voice/__tests__/AudioPlayer.test.ts | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/builders/__tests__/interactions/ContextMenuCommands.test.ts b/packages/builders/__tests__/interactions/ContextMenuCommands.test.ts index ecec8c1b0d69..55a8b030abe1 100644 --- a/packages/builders/__tests__/interactions/ContextMenuCommands.test.ts +++ b/packages/builders/__tests__/interactions/ContextMenuCommands.test.ts @@ -166,7 +166,7 @@ describe('Context Menu Commands', () => { }); describe('integration types', () => { - test('GIVEN a builder with valid integraton types THEN does not throw an error', () => { + test('GIVEN a builder with valid integration types THEN does not throw an error', () => { expect(() => getBuilder().setIntegrationTypes([ ApplicationIntegrationType.GuildInstall, diff --git a/packages/core/src/api/interactions.ts b/packages/core/src/api/interactions.ts index 797e71caa6ea..55f1d9b5bf1d 100644 --- a/packages/core/src/api/interactions.ts +++ b/packages/core/src/api/interactions.ts @@ -258,7 +258,7 @@ export class InteractionsAPI { * @param interactionId - The id of the interaction * @param interactionToken - The token of the interaction * @param options - The options for sending the premium required response - * @deprecated Sending a premium-style button is the new Discord behaviour. + * @deprecated Sending a premium-style button is the new Discord behavior. */ public async sendPremiumRequired( interactionId: Snowflake, diff --git a/packages/discord.js/src/client/websocket/handlers/VOICE_CHANNEL_EFFECT_SEND.js b/packages/discord.js/src/client/websocket/handlers/VOICE_CHANNEL_EFFECT_SEND.js index 350fdb90647f..36f37db799c9 100644 --- a/packages/discord.js/src/client/websocket/handlers/VOICE_CHANNEL_EFFECT_SEND.js +++ b/packages/discord.js/src/client/websocket/handlers/VOICE_CHANNEL_EFFECT_SEND.js @@ -8,7 +8,7 @@ module.exports = (client, { d: data }) => { if (!guild) return; /** - * Emmited when someone sends an effect, such as an emoji reaction, in a voice channel the client is connected to. + * Emitted when someone sends an effect, such as an emoji reaction, in a voice channel the client is connected to. * @event Client#voiceChannelEffectSend * @param {VoiceChannelEffect} voiceChannelEffect The sent voice channel effect */ diff --git a/packages/discord.js/src/sharding/ShardClientUtil.js b/packages/discord.js/src/sharding/ShardClientUtil.js index c1bd4a800571..ae5e67e7e0f0 100644 --- a/packages/discord.js/src/sharding/ShardClientUtil.js +++ b/packages/discord.js/src/sharding/ShardClientUtil.js @@ -8,7 +8,7 @@ const { makeError, makePlainError } = require('../util/Util'); /** * Helper class for sharded clients spawned as a child process/worker, such as from a {@link ShardingManager}. - * Utilises IPC to send and receive data to/from the master process and other shards. + * Utilizes IPC to send and receive data to/from the master process and other shards. */ class ShardClientUtil { constructor(client, mode) { diff --git a/packages/discord.js/src/sharding/ShardingManager.js b/packages/discord.js/src/sharding/ShardingManager.js index 656b5f38019e..147d0c05f067 100644 --- a/packages/discord.js/src/sharding/ShardingManager.js +++ b/packages/discord.js/src/sharding/ShardingManager.js @@ -14,7 +14,7 @@ const { fetchRecommendedShardCount } = require('../util/Util'); * This is a utility class that makes multi-process sharding of a bot an easy and painless experience. * It works by spawning a self-contained {@link ChildProcess} or {@link Worker} for each individual shard, each * containing its own instance of your bot's {@link Client}. They all have a line of communication with the master - * process, and there are several useful methods that utilise it in order to simplify tasks that are normally difficult + * process, and there are several useful methods that utilize it in order to simplify tasks that are normally difficult * with sharding. It can spawn a specific number of shards or the amount that Discord suggests for the bot, and takes a * path to your main bot script to launch for each one. * @extends {EventEmitter} diff --git a/packages/discord.js/src/structures/ThreadOnlyChannel.js b/packages/discord.js/src/structures/ThreadOnlyChannel.js index 1f402ca5989a..0445b9988e9e 100644 --- a/packages/discord.js/src/structures/ThreadOnlyChannel.js +++ b/packages/discord.js/src/structures/ThreadOnlyChannel.js @@ -36,7 +36,7 @@ const { transformAPIGuildForumTag, transformAPIGuildDefaultReaction } = require( */ /** - * Represents symbols utilised by thread-only channels. + * Represents symbols utilized by thread-only channels. * @extends {GuildChannel} * @implements {TextBasedChannel} * @abstract diff --git a/packages/voice/README.md b/packages/voice/README.md index ea682f9107a3..395559dcc720 100644 --- a/packages/voice/README.md +++ b/packages/voice/README.md @@ -24,7 +24,7 @@ **Features:** - Send and receive\* audio in Discord voice-based channels -- A strong focus on reliability and predictable behaviour +- A strong focus on reliability and predictable behavior - Horizontal scalability and libraries other than [discord.js](https://discord.js.org/) are supported with custom adapters - A robust audio processing system that can handle a wide range of audio sources diff --git a/packages/voice/__tests__/AudioPlayer.test.ts b/packages/voice/__tests__/AudioPlayer.test.ts index 6b254ad48516..b30165aeea72 100644 --- a/packages/voice/__tests__/AudioPlayer.test.ts +++ b/packages/voice/__tests__/AudioPlayer.test.ts @@ -76,7 +76,7 @@ describe('State transitions', () => { }); test('Playing resource with pausing and resuming', async () => { - // Call AudioResource constructor directly to avoid analysing pipeline for stream + // Call AudioResource constructor directly to avoid analyzing pipeline for stream const resource = await started(new AudioResource([], [Readable.from(silence())], null, 5)); player = createAudioPlayer(); expect(player.state.status).toEqual(AudioPlayerStatus.Idle);