Constructor
new GroupChannel()
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
applicationID |
String
|
The application ID of the bot that created the group DM |
|
icon |
String
|
<nullable> |
The hash of the group channel icon |
iconURL |
String
|
<nullable> |
The URL of the group channel icon |
lastMessageID |
String
|
<nullable> |
The ID of the last message in this channel |
lastPinTimestamp |
Number
|
<nullable> |
The timestamp of the last pinned message |
managed |
Boolean
|
Whether the group channel is managed by an application (should always be |
|
name |
String
|
The name of the group channel |
|
ownerID |
String
|
The ID of the user that is the group owner |
|
recipients |
Collection.<User>
|
The recipients in the group channel |
- Source:
Extends
Methods
addRecipient(userID, options) → {Promise}
Add a user to the group
- Source:
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
userID |
String
|
The ID of the user to add |
||||||||||||
options |
Object
|
The options for adding the user
|
Returns:
- Type:
-
Promise
delete() → {Promise.<GroupChannel>}
Delete the Group Channel
- Source:
Returns:
- Type:
-
Promise.<GroupChannel>
dynamicIconURL(formatopt, sizeopt) → (nullable) {String}
Get the group's icon with the given format and size
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
format |
String
|
<optional> |
The filetype of the icon ("jpg", "jpeg", "png", "gif", or "webp") |
size |
Number
|
<optional> |
The size of the icon (any power of two between 16 and 4096) |
Returns:
- Type:
-
String
edit(options) → {Promise.<GroupChannel>}
Edit the channel's properties
- Source:
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object
|
The properties to edit
|
Returns:
- Type:
-
Promise.<GroupChannel>
removeRecipient(userID) → {Promise}
Remove a user from the group
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
userID |
String
|
The ID of the target user |
Returns:
- Type:
-
Promise