Constructor
new CategoryChannel()
Properties:
| Name | Type | Description |
|---|---|---|
channels |
Collection.<GuildChannel>
|
A collection of guild channels that are part of this category |
permissionOverwrites |
Collection.<PermissionOverwrite>
|
Collection of permission overwrites in the channel |
position |
Number
|
The position of the channel |
- Source:
Extends
Methods
delete(reasonopt) → {Promise.<(CategoryChannel|ForumChannel|NewsChannel|NewsThreadChannel|PrivateThreadChannel|PublicThreadChannel|TextChannel|VoiceChannel)>}
Delete the channel
- Overrides:
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
reason |
String
|
<optional> |
The reason to be displayed in audit logs |
Returns:
deletePermission(overwriteID, reasonopt) → {Promise}
Delete a channel permission overwrite
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
overwriteID |
String
|
The ID of the overwritten user or role |
|
reason |
String
|
<optional> |
The reason to be displayed in audit logs |
Returns:
- Type:
-
Promise
edit(options, reasonopt) → {Promise.<(CategoryChannel|ForumChannel|NewsChannel|NewsThreadChannel|PrivateThreadChannel|PublicThreadChannel|TextChannel|VoiceChannel)>}
Edit the channel's properties
- Overrides:
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object
|
The properties to edit
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
reason |
String
|
<optional> |
The reason to be displayed in audit logs |
Returns:
editPermission(overwriteID, allow, deny, type, reasonopt) → {Promise.<PermissionOverwrite>}
Edit a channel permission overwrite
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
overwriteID |
String
|
The ID of the overwritten user or role |
|
allow |
BigInt
|
Number
|
String
|
The permissions number for allowed permissions |
|
deny |
BigInt
|
Number
|
String
|
The permissions number for denied permissions |
|
type |
Number
|
The object type of the overwrite, either 1 for "member" or 0 for "role" |
|
reason |
String
|
<optional> |
The reason to be displayed in audit logs |
Returns:
- Type:
-
Promise.<PermissionOverwrite>
permissionsOf(memberID) → {Permission}
Get the channel-specific permissions of a member
- Overrides:
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
memberID |
String
|
Member
|
Object
|
The ID of the member or a Member object |
Returns:
- Type:
-
Permission