new GuildChannel()
- Source:
Properties:
| Name | Type | Description | 
|---|---|---|
| guild | Guild | The guild the channel is in | 
| id | Snowflake | The id of the guild channel | 
| name | String | The name of the guild channel | 
| permissionOverwrites | Array | An array of Permission Overwrites for the channel | 
| position | Number | The position of the Channel | 
| type | String | The type of the channel 
 | 
Extends
Methods
changePermissions(userOrRole, optionsopt) → {Promise.<(Member|Role)>}
- Source:
Edits the channel permission for the user or role
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| userOrRole | Snowflake | The id of the user or role | |||||||||||||||||
| options | Object | <optional> | Options for the permission change Properties
 | 
Returns:
close() → {Promise.<(TextChannel|VoiceChannel|CategoryChannell)>}
- Source:
Closes a channel
Returns:
- Type
- Promise.<(TextChannel|VoiceChannel|CategoryChannell)>
createInvite(optionsopt) → {Promise.<Invite>}
- Source:
Creates an invite for the guild channel
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| options | Object | <optional> | Options for creating the invite Properties
 | 
Returns:
- Type
- Promise.<Invite>
delete() → {Promise.<(TextChannel|VoiceChannel|CategoryChannell)>}
- Source:
Similar to GuildChannel#delete.
Closes a channel
Returns:
- Type
- Promise.<(TextChannel|VoiceChannel|CategoryChannell)>
edit(nameopt, positionopt) → {Promise.<(TextChannel|VoiceChannel|CategoryChannel)>}
- Source:
Edits the channel
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| name | String | <optional> | The new name of the channel | 
| position | Number | <optional> | The new position of the channel | 
Returns:
- Type
- Promise.<(TextChannel|VoiceChannel|CategoryChannel)>
getInvites() → {Promise.<Array.<Invite>>}
- Source:
Returns an array of Channel Invites
Returns:
- Type
- Promise.<Array.<Invite>>
permissionsFor(memberID, permissionName) → {Boolean}
- Source:
Checks a certain permission for a member in a Guild Channel
- This function is still in testing and might not work. ( Small Chance of not working )
Parameters:
| Name | Type | Description | 
|---|---|---|
| memberID | Snowlake | The id of the member | 
| permissionName | String | The name of the permission to check | 
Returns:
- Type
- Boolean