Skip to content

Commit

Permalink
Fix PermissionOverwrite docs, lint
Browse files Browse the repository at this point in the history
  • Loading branch information
abalabahaha committed May 11, 2018
1 parent 0e888b4 commit 5cd3c2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ class Client extends EventEmitter {

/**
* Closes a voice connection with a guild ID
*
* @arg {String} guildID The ID of the guild
*/
closeVoiceConnection(guildID) {
Expand Down Expand Up @@ -343,7 +342,7 @@ class Client extends EventEmitter {
if(!channelID) {
throw new Error(`Invalid channel ID: ${channelID}`);
}

if (this.channelGuildMap[channelID] && this.guilds.get(this.channelGuildMap[channelID])) {
return this.guilds.get(this.channelGuildMap[channelID]).channels.get(channelID);
}
Expand Down
4 changes: 2 additions & 2 deletions lib/structures/PermissionOverwrite.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Permission = require("./Permission");
* Represents a permission overwrite
* @extends Permission
* @prop {String} id The ID of the overwrite
* @prop {String} type The type of the overwrite, either "user" or "role"
* @prop {String} type The type of the overwrite, either "member" or "role"
*/
class PermissionOverwrite extends Permission {
constructor(data) {
Expand All @@ -24,4 +24,4 @@ class PermissionOverwrite extends Permission {
}
}

module.exports = PermissionOverwrite;
module.exports = PermissionOverwrite;

0 comments on commit 5cd3c2d

Please sign in to comment.