Constructor
new GuildChannel()
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
flags |
Number
|
The channel's flags (see constants). Currently only applies to thread/forum/media channels |
|
guild |
Guild
|
The guild that owns the channel |
|
name |
String
|
The name of the channel |
|
parentID |
String
|
<nullable> |
The ID of the category (or channel for threads) this channel belongs to |
- Source:
Extends
Methods
delete(reasonopt) → {Promise.<(CategoryChannel|ForumChannel|NewsChannel|NewsThreadChannel|PrivateThreadChannel|PublicThreadChannel|TextChannel|VoiceChannel)>}
Delete the channel
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
reason |
String
|
<optional> |
The reason to be displayed in audit logs |
Returns:
edit(options, reasonopt) → {Promise.<(CategoryChannel|ForumChannel|NewsChannel|NewsThreadChannel|PrivateThreadChannel|PublicThreadChannel|TextChannel|VoiceChannel)>}
Edit the channel's properties
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object
|
The properties to edit
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
reason |
String
|
<optional> |
The reason to be displayed in audit logs |
Returns:
permissionsOf(memberID) → {Permission}
Get the channel-specific permissions of a member
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
memberID |
String
|
Member
|
Object
|
The ID of the member or a Member object |
Returns:
- Type:
-
Permission