mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
docs: fix typos (#3404)
This commit is contained in:
@@ -297,7 +297,7 @@ class WebSocketManager extends EventEmitter {
|
||||
} catch (error) {
|
||||
this.debug(`Couldn't reconnect or fetch information about the gateway. ${error}`);
|
||||
if (error.httpStatus !== 401) {
|
||||
this.debug(`Possible network error occured. Retrying in 5s...`);
|
||||
this.debug(`Possible network error occurred. Retrying in 5s...`);
|
||||
await Util.delayFor(5000);
|
||||
this.reconnecting = false;
|
||||
return this.reconnect();
|
||||
|
||||
@@ -465,7 +465,7 @@ class WebSocketShard extends EventEmitter {
|
||||
*/
|
||||
sendHeartbeat() {
|
||||
if (!this.lastHeartbeatAcked) {
|
||||
this.debug("Didn't receive a heartbeat ack last time, assuming zombie conenction. Destroying and reconnecting.");
|
||||
this.debug("Didn't receive a heartbeat ack last time, assuming zombie connection. Destroying and reconnecting.");
|
||||
this.destroy(4009);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ module.exports = (client, { d: data }) => {
|
||||
* Emitted whenever the pins of a channel are updated. Due to the nature of the WebSocket event,
|
||||
* not much information can be provided easily here - you need to manually check the pins yourself.
|
||||
* @event Client#channelPinsUpdate
|
||||
* @param {DMChannel|TextChannel} channel The channel that the pins update occured in
|
||||
* @param {DMChannel|TextChannel} channel The channel that the pins update occurred in
|
||||
* @param {Date} time The time of the pins update
|
||||
*/
|
||||
client.emit(Events.CHANNEL_PINS_UPDATE, channel, time);
|
||||
|
||||
@@ -319,7 +319,7 @@ class Shard extends EventEmitter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Emitted upon recieving a message from the child process/worker.
|
||||
* Emitted upon receiving a message from the child process/worker.
|
||||
* @event Shard#message
|
||||
* @param {*} message Message that was received
|
||||
*/
|
||||
|
||||
@@ -73,7 +73,7 @@ class ShardingManager extends EventEmitter {
|
||||
if (this.shardList.length < 1) throw new RangeError('CLIENT_INVALID_OPTION', 'shardList', 'at least 1 ID.');
|
||||
if (this.shardList.some(shardID => typeof shardID !== 'number' || isNaN(shardID) ||
|
||||
!Number.isInteger(shardID) || shardID < 0)) {
|
||||
throw new TypeError('CLIENT_INVALID_OPTION', 'shardList', 'an array of postive integers.');
|
||||
throw new TypeError('CLIENT_INVALID_OPTION', 'shardList', 'an array of positive integers.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ fi
|
||||
DONT_COMMIT=false
|
||||
|
||||
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
||||
echo -e "\e[36m\e[1mBuild triggered for PR #${TRAVIS_PULL_REQUEST} to branch \"${TRAVIS_BRANCH}\" - not commiting"
|
||||
echo -e "\e[36m\e[1mBuild triggered for PR #${TRAVIS_PULL_REQUEST} to branch \"${TRAVIS_BRANCH}\" - not committing"
|
||||
SOURCE_TYPE="pr"
|
||||
DONT_COMMIT=true
|
||||
elif [ -n "$TRAVIS_TAG" ]; then
|
||||
@@ -29,7 +29,7 @@ npm run docs
|
||||
NODE_ENV=production npm run build:browser
|
||||
|
||||
if [ $DONT_COMMIT == true ]; then
|
||||
echo -e "\e[36m\e[1mNot commiting - exiting early"
|
||||
echo -e "\e[36m\e[1mNot committing - exiting early"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -1736,7 +1736,7 @@ declare module 'discord.js' {
|
||||
public create(name: string, options?: GuildCreateChannelOptions): Promise<TextChannel | VoiceChannel | CategoryChannel>;
|
||||
}
|
||||
|
||||
// Hacky workaround because changing the signature of an overriden method errors
|
||||
// Hacky workaround because changing the signature of an overridden method errors
|
||||
class OverridableDataStore<V, K, VConstructor = Constructable<V>, R = any> extends DataStore<V, K, VConstructor, R> {
|
||||
public add(data: any, cache: any): any;
|
||||
public set(key: any): any;
|
||||
|
||||
Reference in New Issue
Block a user