-
Notifications
You must be signed in to change notification settings - Fork 144
PrivateChannel
SinisterRectus edited this page Nov 5, 2016
·
22 revisions
Properties Inherited From Channel
Name | Type | Mutable | Description |
---|---|---|---|
isPrivate | boolean | Whether the channel is private | |
type | string | The channel type (text or voice) |
Properties Inherited From Container
Name | Type | Mutable | Description |
---|---|---|---|
client | Client | Client object to which the Discord object is known | |
parent | * | Parent Discord object |
Properties Inherited From Snowflake
Name | Type | Mutable | Description |
---|---|---|---|
createdAt | number | Unix time in seconds at which the object was created by Discord | |
id | string | Snowflake ID for the object |
Properties Inherited From TextChannel
Name | Type | Mutable | Description |
---|---|---|---|
messageCount | number | How many messages are cached for the channel | |
messages | function | Iterator for the cached messages in the channel | |
pinnedMessages | function | Iterator for all of the pinned messages in the channel |
Name | Type | Mutable | Description |
---|---|---|---|
name | string | The username of the channel recipient | |
recipient | User | The recipient of the private channel (the other half of your conversation) |
Methods Inherited From Channel
Prototype | Description |
---|---|
delete() | Deletes the channel. This cannot be undone for guild channels! |
Methods Inherited From TextChannel
Prototype | Description |
---|---|
broadcastTyping() | Causes the 'User is typing...' indicator to show in the channel. |
bulkDelete(messages) | Permanently deletes a table, cache, or deque of messages from the channel. |
findMessage(predicate) | Returns the first cached message that satisfies a predicate. |
findMessages(predicate) | Returns all cached messages that satisfy a predicate. |
getMessage([key,] value]) | Returns the first cached message that matches the (key, value) pair. |
getMessageHistory([limit]) | Returns an iterator for the most recent messages in the channel. |
getMessageHistoryAfter(message[, limit]) | Returns an iterator for the messages after a specific message. |
getMessageHistoryAround(message[, limit]) | Returns an iterator for the messages around a specific message. |
getMessageHistoryBefore(message[, limit]) | Returns an iterator for the messages before a specific message. |
getMessages(key, value) | Returns an iterator for all cached messages that match the (key, value) pair |
loadMessages([limit]) | Downloads 1 to 100 (default: 50) of the channel's most recent messages into the channel cache. |
sendMessage(content[, mentions, tts, nonce]) | Sends a message to the channel. |