mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
Grammar cleanup (#875)
This commit: * fixes inconsistencies (primarily regarding capitalization) * fixes non-proper nouns that were improperly capitalized * fixes reminents from not-so-meticulous copy+paste jobs
This commit is contained in:
@@ -5,12 +5,12 @@ const Constants = require('../util/Constants');
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a Guild Channel that the client only has limited information for - e.g. from invites.
|
||||
* Represents a guild channel that the client only has limited information for - e.g. from invites.
|
||||
*/
|
||||
class PartialGuildChannel {
|
||||
constructor(client, data) {
|
||||
/**
|
||||
* The client that instantiated this PartialGuildChannel
|
||||
* The Client that instantiated this PartialGuildChannel
|
||||
* @type {Client}
|
||||
*/
|
||||
this.client = client;
|
||||
@@ -21,19 +21,19 @@ class PartialGuildChannel {
|
||||
|
||||
setup(data) {
|
||||
/**
|
||||
* The ID of this Guild Channel
|
||||
* The ID of this guild channel
|
||||
* @type {string}
|
||||
*/
|
||||
this.id = data.id;
|
||||
|
||||
/**
|
||||
* The name of this Guild Channel
|
||||
* The name of this guild channel
|
||||
* @type {string}
|
||||
*/
|
||||
this.name = data.name;
|
||||
|
||||
/**
|
||||
* The type of this Guild Channel - `text` or `voice`
|
||||
* The type of this guild channel - `text` or `voice`
|
||||
* @type {string}
|
||||
*/
|
||||
this.type = Constants.ChannelTypes.text === data.type ? 'text' : 'voice';
|
||||
|
||||
Reference in New Issue
Block a user