docs: fix a number of spelling mistakes (#2469)

This commit is contained in:
bdistin
2018-04-13 13:50:47 -05:00
committed by SpaceEEC
parent 6069061fee
commit 8551b8936c
7 changed files with 23 additions and 23 deletions

View File

@@ -91,7 +91,7 @@ class GuildEmojiStore extends DataStore {
/** /**
* Data that can be resolved to give an emoji identifier. This can be: * Data that can be resolved to give an emoji identifier. This can be:
* * The unicode representation of an emoji * * The unicode representation of an emoji
* * An EmojiResolveable * * An EmojiResolvable
* @typedef {string|EmojiResolvable} EmojiIdentifierResolvable * @typedef {string|EmojiResolvable} EmojiIdentifierResolvable
*/ */
@@ -101,8 +101,8 @@ class GuildEmojiStore extends DataStore {
* @returns {?string} * @returns {?string}
*/ */
resolveIdentifier(emoji) { resolveIdentifier(emoji) {
const emojiResolveable = this.resolve(emoji); const emojiResolvable = this.resolve(emoji);
if (emojiResolveable) return emojiResolveable.identifier; if (emojiResolvable) return emojiResolvable.identifier;
if (emoji instanceof ReactionEmoji) return emoji.identifier; if (emoji instanceof ReactionEmoji) return emoji.identifier;
if (typeof emoji === 'string') { if (typeof emoji === 'string') {
if (!emoji.includes('%')) return encodeURIComponent(emoji); if (!emoji.includes('%')) return encodeURIComponent(emoji);

View File

@@ -31,10 +31,10 @@ class GuildMemberStore extends DataStore {
* @returns {?GuildMember} * @returns {?GuildMember}
*/ */
resolve(member) { resolve(member) {
const memberResolveable = super.resolve(member); const memberResolvable = super.resolve(member);
if (memberResolveable) return memberResolveable; if (memberResolvable) return memberResolvable;
const userResolveable = this.client.users.resolveID(member); const userResolvable = this.client.users.resolveID(member);
if (userResolveable) return super.resolve(userResolveable); if (userResolvable) return super.resolve(userResolvable);
return null; return null;
} }
@@ -44,10 +44,10 @@ class GuildMemberStore extends DataStore {
* @returns {?Snowflake} * @returns {?Snowflake}
*/ */
resolveID(member) { resolveID(member) {
const memberResolveable = super.resolveID(member); const memberResolvable = super.resolveID(member);
if (memberResolveable) return memberResolveable; if (memberResolvable) return memberResolvable;
const userResolveable = this.client.users.resolveID(member); const userResolvable = this.client.users.resolveID(member);
return this.has(userResolveable) ? userResolveable : null; return this.has(userResolvable) ? userResolvable : null;
} }
/** /**

View File

@@ -56,7 +56,7 @@ class MessageStore extends DataStore {
/** /**
* Fetches the pinned messages of this channel and returns a collection of them. * Fetches the pinned messages of this channel and returns a collection of them.
* <info>The returned Collection does not contain the reactions of the messages. * <info>The returned Collection does not contain the reactions of the messages.
* Those need to be fetched seperately.</info> * Those need to be fetched separately.</info>
* @returns {Promise<Collection<Snowflake, Message>>} * @returns {Promise<Collection<Snowflake, Message>>}
*/ */
fetchPinned() { fetchPinned() {

View File

@@ -29,10 +29,10 @@ class PresenceStore extends DataStore {
* @returns {?Presence} * @returns {?Presence}
*/ */
resolve(presence) { resolve(presence) {
const presenceResolveable = super.resolve(presence); const presenceResolvable = super.resolve(presence);
if (presenceResolveable) return presenceResolveable; if (presenceResolvable) return presenceResolvable;
const UserResolveable = this.client.users.resolveID(presence); const UserResolvable = this.client.users.resolveID(presence);
return super.resolve(UserResolveable) || null; return super.resolve(UserResolvable) || null;
} }
/** /**
@@ -41,10 +41,10 @@ class PresenceStore extends DataStore {
* @returns {?Snowflake} * @returns {?Snowflake}
*/ */
resolveID(presence) { resolveID(presence) {
const presenceResolveable = super.resolveID(presence); const presenceResolvable = super.resolveID(presence);
if (presenceResolveable) return presenceResolveable; if (presenceResolvable) return presenceResolvable;
const userResolveable = this.client.users.resolveID(presence); const userResolvable = this.client.users.resolveID(presence);
return this.has(userResolveable) ? userResolveable : null; return this.has(userResolvable) ? userResolvable : null;
} }
} }

View File

@@ -131,7 +131,7 @@ class Message extends Base {
this.webhookID = data.webhook_id || null; this.webhookID = data.webhook_id || null;
/** /**
* Supplimental application information for group activities * Supplemental application information for group activities
* @type {?ClientApplication} * @type {?ClientApplication}
*/ */
this.application = data.application ? new ClientApplication(this.client, data.application) : null; this.application = data.application ? new ClientApplication(this.client, data.application) : null;

View File

@@ -158,7 +158,7 @@ class Activity {
} }
/** /**
* When concatenated with a string, this automatically returns the activities's name instead of the Activity object. * When concatenated with a string, this automatically returns the activities' name instead of the Activity object.
* @returns {string} * @returns {string}
*/ */
toString() { toString() {

View File

@@ -114,7 +114,7 @@ class Collector extends EventEmitter {
/** /**
* Returns a promise that resolves with the next collected element; * Returns a promise that resolves with the next collected element;
* rejects with collected elements if the collector finishes without receving a next element * rejects with collected elements if the collector finishes without receiving a next element
* @type {Promise} * @type {Promise}
* @readonly * @readonly
*/ */