new CategoryChannel()
- Source:
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
children |
Array |
<nullable> |
Returns an array of channels that has the category as it's parent |
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>>