Constructor
new ForumChannel()
Properties:
| Name | Type | Description |
|---|---|---|
defaultForumLayout |
Number
|
The default forum layout type used to display posts in the channel |
- Source:
Extends
Methods
createInvite(optionsopt, reasonopt) → {Promise.<Invite>}
Create an invite for the channel
- Overrides:
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object
|
<optional> |
Invite generation options
|
||||||||||||||||||||
reason |
String
|
<optional> |
The reason to be displayed in audit logs |
Returns:
- Type:
-
Promise.<Invite>
createThread(options, fileopt) → {Promise.<ThreadChannel>}
Create a thread inside the channel
- Overrides:
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object
|
The thread options
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
file |
Object
|
Array.<Object>
|
<optional> |
A file object (or an Array of them)
|
Returns:
- Type:
-
Promise.<ThreadChannel>
createWebhook(options, reasonopt) → {Promise.<Object>}
Create a channel webhook
- Overrides:
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object
|
Webhook options
|
|||||||||||||
reason |
String
|
<optional> |
The reason to be displayed in audit logs |
Returns:
- Type:
-
Promise.<Object>
Resolves with a webhook object
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
- Overrides:
- 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>}
Create a channel permission overwrite
- Overrides:
- 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>
getArchivedThreads(optionsopt) → {Promise.<Object>}
Get all archived threads in the channel
- Overrides:
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object
|
<optional> |
Additional options when requesting archived threads
|
Returns:
- Type:
-
Promise.<Object>
An object containing an array of threads, an array of members and whether the response hasMore threads that could be returned in a subsequent call
getInvites() → {Promise.<Array.<Invite>>}
Get all invites in the channel
- Overrides:
- Source:
Returns:
- Type:
-
Promise.<Array.<Invite>>
getWebhooks() → {Promise.<Array.<Object>>}
Get all the webhooks in the channel
- Overrides:
- Source:
Returns:
- Type:
-
Promise.<Array.<Object>>
Resolves with an array of webhook objects
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