new VoiceChannel()
- Source:
 
Properties:
| Name | Type | Attributes | Description | 
|---|---|---|---|
bitrate | 
            
            Number | 
                
                
                    <nullable> | 
            
            
            The bitrate (in bits) of the voice channel  | 
        
userLimit | 
            
            Number | 
                
                
                    <nullable> | 
            
            
            The amount of members allowed to join the voice channel  | 
        
parentID | 
            
            Snowflake | 
                
                
                    <nullable> | 
            
            
            The id of the category the channel is in  | 
        
parent | 
            
            Object | 
                
                
                    <nullable> | 
            
            
            The category the channel is in  | 
        
Extends
Methods
changePermissions(userOrRole, optionsopt) → {Promise.<(Member|Role)>}
- Source:
 - Inherited From:
 
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:
- Type
 - Promise.<(Member|Role)>
 
close() → {Promise.<(TextChannel|VoiceChannel|CategoryChannell)>}
- Source:
 - Inherited From:
 
Closes a channel
Returns:
- Type
 - Promise.<(TextChannel|VoiceChannel|CategoryChannell)>
 
createInvite(optionsopt) → {Promise.<Invite>}
- Source:
 - Inherited From:
 
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:
 - Inherited From:
 
Similar to GuildChannel#delete.
Closes a channel
Returns:
- Type
 - Promise.<(TextChannel|VoiceChannel|CategoryChannell)>
 
edit(nameopt, positionopt) → {Promise.<(TextChannel|VoiceChannel|CategoryChannel)>}
- Source:
 - Inherited From:
 
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:
 - Inherited From:
 
Returns an array of Channel Invites
Returns:
- Type
 - Promise.<Array.<Invite>>