fix: actually fix Readonly typos

This commit is contained in:
Isabella
2018-08-21 14:25:30 -05:00
parent c59d3299bc
commit 928fb30040
7 changed files with 14 additions and 14 deletions

View File

@@ -133,7 +133,7 @@ class GuildChannel extends Channel {
/**
* Gets the overall set of permissions for a member in this channel, taking into account channel overwrites.
* @param {GuildMember} member The member to obtain the overall permissions for
* @returns {ReadOnly<Permissions>}
* @returns {Readonly<Permissions>}
* @private
*/
memberPermissions(member) {
@@ -159,7 +159,7 @@ class GuildChannel extends Channel {
/**
* Gets the overall set of permissions for a role in this channel, taking into account channel overwrites.
* @param {Role} role The role to obtain the overall permissions for
* @returns {ReadOnly<Permissions>}
* @returns {Readonly<Permissions>}
* @private
*/
rolePermissions(role) {

View File

@@ -168,7 +168,7 @@ class GuildMember extends Base {
/**
* The overall set of permissions for this member, taking only roles into account
* @type {ReadOnly<Permissions>}
* @type {Readonly<Permissions>}
* @readonly
*/
get permissions() {
@@ -209,7 +209,7 @@ class GuildMember extends Base {
* Returns `channel.permissionsFor(guildMember)`. Returns permissions for a member in a guild channel,
* taking into account roles and permission overwrites.
* @param {ChannelResolvable} channel The guild channel to use as context
* @returns {ReadOnly<Permissions>}
* @returns {Readonly<Permissions>}
*/
permissionsIn(channel) {
channel = this.guild.channels.resolve(channel);

View File

@@ -39,13 +39,13 @@ class PermissionOverwrites {
/**
* The permissions that are denied for the user or role.
* @type {ReadOnly<Permissions>}
* @type {Readonly<Permissions>}
*/
this.deny = new Permissions(data.deny).freeze();
/**
* The permissions that are allowed for the user or role.
* @type {ReadOnly<Permissions>}
* @type {Readonly<Permissions>}
*/
this.allow = new Permissions(data.allow).freeze();
}

View File

@@ -154,7 +154,7 @@ class Activity {
/**
* Flags that describe the activity
* @type {ReadOnly<ActivityFlags>}
* @type {Readonly<ActivityFlags>}
*/
this.flags = new ActivityFlags(data.flags).freeze();
}

View File

@@ -54,7 +54,7 @@ class Role extends Base {
/**
* The permissions of the role
* @type {ReadOnly<Permissions>}
* @type {Readonly<Permissions>}
*/
this.permissions = new Permissions(data.permissions).freeze();
@@ -203,7 +203,7 @@ class Role extends Base {
* Returns `channel.permissionsFor(role)`. Returns permissions for a role in a guild channel,
* taking into account permission overwrites.
* @param {ChannelResolvable} channel The guild channel to use as context
* @returns {ReadOnly<Permissions>}
* @returns {Readonly<Permissions>}
*/
permissionsIn(channel) {
channel = this.guild.channels.resolve(channel);