diff --git a/src/client/websocket/WebSocketManager.js b/src/client/websocket/WebSocketManager.js index 6dec7c40e..c2530ef31 100644 --- a/src/client/websocket/WebSocketManager.js +++ b/src/client/websocket/WebSocketManager.js @@ -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(); diff --git a/src/client/websocket/WebSocketShard.js b/src/client/websocket/WebSocketShard.js index 13ffa9f6d..9663052c6 100644 --- a/src/client/websocket/WebSocketShard.js +++ b/src/client/websocket/WebSocketShard.js @@ -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; } diff --git a/src/client/websocket/handlers/CHANNEL_PINS_UPDATE.js b/src/client/websocket/handlers/CHANNEL_PINS_UPDATE.js index 11154674a..da73693cb 100644 --- a/src/client/websocket/handlers/CHANNEL_PINS_UPDATE.js +++ b/src/client/websocket/handlers/CHANNEL_PINS_UPDATE.js @@ -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); diff --git a/src/sharding/Shard.js b/src/sharding/Shard.js index 4fab578d8..6533b4f83 100644 --- a/src/sharding/Shard.js +++ b/src/sharding/Shard.js @@ -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 */ diff --git a/src/sharding/ShardingManager.js b/src/sharding/ShardingManager.js index 15b74ffdf..f0298054c 100644 --- a/src/sharding/ShardingManager.js +++ b/src/sharding/ShardingManager.js @@ -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.'); } } diff --git a/travis/deploy.sh b/travis/deploy.sh index 39b579099..7043abf98 100644 --- a/travis/deploy.sh +++ b/travis/deploy.sh @@ -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 diff --git a/typings/index.d.ts b/typings/index.d.ts index 7ad1cc06d..76c8f4e89 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1736,7 +1736,7 @@ declare module 'discord.js' { public create(name: string, options?: GuildCreateChannelOptions): Promise; } - // Hacky workaround because changing the signature of an overriden method errors + // Hacky workaround because changing the signature of an overridden method errors class OverridableDataStore, R = any> extends DataStore { public add(data: any, cache: any): any; public set(key: any): any;