Search
Preparing search index...
The search index is not available
yuuko
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
yuuko
Eris
PrivateChannel
Class PrivateChannel
Hierarchy
Channel
PrivateChannel
GroupChannel
Implements
Textable
Index
Constructors
constructor
Properties
client
created
At
id
last
MessageID
mention
messages
recipient
type
Methods
add
Message
Reaction
create
Message
delete
Message
edit
Message
get
Message
get
Message
Reaction
get
Messages
get
Pins
inspect
leave
pin
Message
remove
Message
Reaction
ring
send
Typing
sync
Call
toJSON
unpin
Message
unsend
Message
from
Constructors
constructor
new
Private
Channel
(
data
:
BaseData
)
:
PrivateChannel
Parameters
data:
BaseData
Returns
PrivateChannel
Properties
client
client
:
Client
created
At
created
At
:
number
id
id
:
string
last
MessageID
last
MessageID
:
string
mention
mention
:
string
messages
messages
:
Collection
<
Message
<
PrivateChannel
>
>
recipient
recipient
:
User
type
type
:
1
|
3
Methods
add
Message
Reaction
add
Message
Reaction
(
messageID
:
string
, reaction
:
string
, userID
?:
string
)
:
Promise
<
void
>
Parameters
messageID:
string
reaction:
string
Optional
userID:
string
Returns
Promise
<
void
>
create
Message
create
Message
(
content
:
MessageContent
, file
?:
MessageFile
|
MessageFile
[]
)
:
Promise
<
Message
<
PrivateChannel
>
>
Parameters
content:
MessageContent
Optional
file:
MessageFile
|
MessageFile
[]
Returns
Promise
<
Message
<
PrivateChannel
>
>
delete
Message
delete
Message
(
messageID
:
string
, reason
?:
string
)
:
Promise
<
void
>
Parameters
messageID:
string
Optional
reason:
string
Returns
Promise
<
void
>
edit
Message
edit
Message
(
messageID
:
string
, content
:
MessageContent
)
:
Promise
<
Message
<
PrivateChannel
>
>
Parameters
messageID:
string
content:
MessageContent
Returns
Promise
<
Message
<
PrivateChannel
>
>
get
Message
get
Message
(
messageID
:
string
)
:
Promise
<
Message
<
PrivateChannel
>
>
Parameters
messageID:
string
Returns
Promise
<
Message
<
PrivateChannel
>
>
get
Message
Reaction
get
Message
Reaction
(
messageID
:
string
, reaction
:
string
, limit
?:
number
, before
?:
string
, after
?:
string
)
:
Promise
<
User
[]
>
Parameters
messageID:
string
reaction:
string
Optional
limit:
number
Optional
before:
string
Optional
after:
string
Returns
Promise
<
User
[]
>
get
Messages
get
Messages
(
limit
?:
number
, before
?:
string
, after
?:
string
, around
?:
string
)
:
Promise
<
Message
<
PrivateChannel
>
[]
>
Parameters
Optional
limit:
number
Optional
before:
string
Optional
after:
string
Optional
around:
string
Returns
Promise
<
Message
<
PrivateChannel
>
[]
>
get
Pins
get
Pins
(
)
:
Promise
<
Message
<
PrivateChannel
>
[]
>
Returns
Promise
<
Message
<
PrivateChannel
>
[]
>
inspect
inspect
(
)
:
PrivateChannel
Returns
PrivateChannel
leave
leave
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
pin
Message
pin
Message
(
messageID
:
string
)
:
Promise
<
void
>
Parameters
messageID:
string
Returns
Promise
<
void
>
remove
Message
Reaction
remove
Message
Reaction
(
messageID
:
string
, reaction
:
string
, userID
?:
string
)
:
Promise
<
void
>
Parameters
messageID:
string
reaction:
string
Optional
userID:
string
Returns
Promise
<
void
>
ring
ring
(
recipient
:
string
[]
)
:
void
Parameters
recipient:
string
[]
Returns
void
send
Typing
send
Typing
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
sync
Call
sync
Call
(
)
:
void
Returns
void
toJSON
toJSON
(
props
?:
string
[]
)
:
JSONCache
Parameters
Optional
props:
string
[]
Returns
JSONCache
unpin
Message
unpin
Message
(
messageID
:
string
)
:
Promise
<
void
>
Parameters
messageID:
string
Returns
Promise
<
void
>
unsend
Message
unsend
Message
(
messageID
:
string
)
:
Promise
<
void
>
Parameters
messageID:
string
Returns
Promise
<
void
>
Static
from
from
(
data
:
object
, client
:
Client
)
:
AnyChannel
Parameters
data:
object
client:
Client
Returns
AnyChannel
Exports
Externals
Eris
Private
Channel
constructor
client
created
At
id
last
MessageID
mention
messages
recipient
type
add
Message
Reaction
create
Message
delete
Message
edit
Message
get
Message
get
Message
Reaction
get
Messages
get
Pins
inspect
leave
pin
Message
remove
Message
Reaction
ring
send
Typing
sync
Call
toJSON
unpin
Message
unsend
Message
from
Generated using
TypeDoc