mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
docs: Typos (#10628)
chore: typos Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -501,7 +501,7 @@ describe('ChatInput Commands', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('integration types', () => {
|
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(() =>
|
expect(() =>
|
||||||
getNamedBuilder()
|
getNamedBuilder()
|
||||||
.setIntegrationTypes([ApplicationIntegrationType.GuildInstall, ApplicationIntegrationType.UserInstall])
|
.setIntegrationTypes([ApplicationIntegrationType.GuildInstall, ApplicationIntegrationType.UserInstall])
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ describe('Context Menu Commands', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('integration types', () => {
|
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(() =>
|
expect(() =>
|
||||||
getBuilder().setIntegrationTypes([
|
getBuilder().setIntegrationTypes([
|
||||||
ApplicationIntegrationType.GuildInstall,
|
ApplicationIntegrationType.GuildInstall,
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export function isValidationEnabled() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parses a value with a given validator, accounting for wether validation is enabled.
|
* Parses a value with a given validator, accounting for whether validation is enabled.
|
||||||
*
|
*
|
||||||
* @param validator - The zod validator to use
|
* @param validator - The zod validator to use
|
||||||
* @param value - The value to parse
|
* @param value - The value to parse
|
||||||
|
|||||||
@@ -439,7 +439,7 @@ export class InteractionsAPI {
|
|||||||
* @param interactionId - The id of the interaction
|
* @param interactionId - The id of the interaction
|
||||||
* @param interactionToken - The token of the interaction
|
* @param interactionToken - The token of the interaction
|
||||||
* @param options - The options for sending the premium required response
|
* @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(
|
public async sendPremiumRequired(
|
||||||
interactionId: Snowflake,
|
interactionId: Snowflake,
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module.exports = (client, { d: data }) => {
|
|||||||
if (!guild) return;
|
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
|
* @event Client#voiceChannelEffectSend
|
||||||
* @param {VoiceChannelEffect} voiceChannelEffect The sent voice channel effect
|
* @param {VoiceChannelEffect} voiceChannelEffect The sent voice channel effect
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ const { makeError, makePlainError } = require('../util/Util');
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper class for sharded clients spawned as a child process/worker, such as from a {@link ShardingManager}.
|
* 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 {
|
class ShardClientUtil {
|
||||||
constructor(client, mode) {
|
constructor(client, mode) {
|
||||||
|
|||||||
@@ -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.
|
* 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
|
* 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
|
* 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
|
* 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.
|
* path to your main bot script to launch for each one.
|
||||||
* @extends {EventEmitter}
|
* @extends {EventEmitter}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ const { transformAPIGuildForumTag, transformAPIGuildDefaultReaction } = require(
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents symbols utilised by thread-only channels.
|
* Represents symbols utilized by thread-only channels.
|
||||||
* @extends {GuildChannel}
|
* @extends {GuildChannel}
|
||||||
* @implements {TextBasedChannel}
|
* @implements {TextBasedChannel}
|
||||||
* @abstract
|
* @abstract
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
**Features:**
|
**Features:**
|
||||||
|
|
||||||
- Send and receive\* audio in Discord voice-based channels
|
- 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
|
- 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
|
- A robust audio processing system that can handle a wide range of audio sources
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ describe('State transitions', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('Playing resource with pausing and resuming', async () => {
|
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));
|
const resource = await started(new AudioResource([], [Readable.from(silence())], null, 5));
|
||||||
player = createAudioPlayer();
|
player = createAudioPlayer();
|
||||||
expect(player.state.status).toEqual(AudioPlayerStatus.Idle);
|
expect(player.state.status).toEqual(AudioPlayerStatus.Idle);
|
||||||
|
|||||||
Reference in New Issue
Block a user