Search
Preparing search index...
The search index is not available
yuuko
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
yuuko
Eris
TextChannel
Class TextChannel
Hierarchy
GuildChannel
TextChannel
NewsChannel
Implements
GuildTextable
Invitable
Index
Constructors
constructor
Properties
client
created
At
guild
id
last
MessageID
last
Pin
Timestamp
mention
messages
name
nsfw
parentID
permission
Overwrites
position
rate
Limit
Per
User
topic
type
Methods
add
Message
Reaction
create
Invite
create
Message
create
Webhook
delete
delete
Message
delete
Messages
delete
Permission
edit
edit
Message
edit
Permission
edit
Position
get
Invites
get
Message
get
Message
Reaction
get
Messages
get
Pins
get
Webhooks
inspect
permissions
Of
pin
Message
purge
remove
Message
Reaction
remove
Message
Reaction
Emoji
remove
Message
Reactions
send
Typing
toJSON
unpin
Message
unsend
Message
from
Constructors
constructor
new
Text
Channel
(
data
:
BaseData
, guild
:
Guild
, messageLimit
:
number
)
:
TextChannel
Parameters
data:
BaseData
guild:
Guild
messageLimit:
number
Returns
TextChannel
Properties
client
client
:
Client
created
At
created
At
:
number
guild
guild
:
Guild
id
id
:
string
last
MessageID
last
MessageID
:
string
Optional
last
Pin
Timestamp
last
Pin
Timestamp
:
undefined
|
number
mention
mention
:
string
messages
messages
:
Collection
<
Message
<
TextChannel
>
>
name
name
:
string
nsfw
nsfw
:
boolean
Optional
parentID
parentID
:
undefined
|
string
permission
Overwrites
permission
Overwrites
:
Collection
<
PermissionOverwrite
>
position
position
:
number
rate
Limit
Per
User
rate
Limit
Per
User
:
number
Optional
topic
topic
:
undefined
|
string
type
type
:
0
|
5
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
Invite
create
Invite
(
options
?:
CreateInviteOptions
, reason
?:
string
)
:
Promise
<
ChannelInvite
>
Parameters
Optional
options:
CreateInviteOptions
Optional
reason:
string
Returns
Promise
<
ChannelInvite
>
create
Message
create
Message
(
content
:
MessageContent
, file
?:
MessageFile
|
MessageFile
[]
)
:
Promise
<
Message
<
TextChannel
>
>
Parameters
content:
MessageContent
Optional
file:
MessageFile
|
MessageFile
[]
Returns
Promise
<
Message
<
TextChannel
>
>
create
Webhook
create
Webhook
(
options
:
{
avatar
:
string
;
name
:
string
}
, reason
?:
string
)
:
Promise
<
Webhook
>
Parameters
options:
{
avatar
:
string
;
name
:
string
}
avatar
:
string
name
:
string
Optional
reason:
string
Returns
Promise
<
Webhook
>
delete
delete
(
reason
?:
string
)
:
Promise
<
void
>
Parameters
Optional
reason:
string
Returns
Promise
<
void
>
delete
Message
delete
Message
(
messageID
:
string
, reason
?:
string
)
:
Promise
<
void
>
Parameters
messageID:
string
Optional
reason:
string
Returns
Promise
<
void
>
delete
Messages
delete
Messages
(
messageIDs
:
string
[]
, reason
?:
string
)
:
Promise
<
void
>
Parameters
messageIDs:
string
[]
Optional
reason:
string
Returns
Promise
<
void
>
delete
Permission
delete
Permission
(
overwriteID
:
string
, reason
?:
string
)
:
Promise
<
void
>
Parameters
overwriteID:
string
Optional
reason:
string
Returns
Promise
<
void
>
edit
edit
(
options
:
{
bitrate
?:
undefined
|
number
;
name
?:
undefined
|
string
;
nsfw
?:
undefined
|
boolean
;
parentID
?:
undefined
|
string
;
rateLimitPerUser
?:
undefined
|
number
;
topic
?:
undefined
|
string
;
userLimit
?:
undefined
|
number
}
, reason
?:
string
)
:
Promise
<
TextChannel
>
Parameters
options:
{
bitrate
?:
undefined
|
number
;
name
?:
undefined
|
string
;
nsfw
?:
undefined
|
boolean
;
parentID
?:
undefined
|
string
;
rateLimitPerUser
?:
undefined
|
number
;
topic
?:
undefined
|
string
;
userLimit
?:
undefined
|
number
}
Optional
bitrate
?:
undefined
|
number
Optional
name
?:
undefined
|
string
Optional
nsfw
?:
undefined
|
boolean
Optional
parentID
?:
undefined
|
string
Optional
rate
Limit
Per
User
?:
undefined
|
number
Optional
topic
?:
undefined
|
string
Optional
user
Limit
?:
undefined
|
number
Optional
reason:
string
Returns
Promise
<
TextChannel
>
edit
Message
edit
Message
(
messageID
:
string
, content
:
MessageContent
)
:
Promise
<
Message
<
TextChannel
>
>
Parameters
messageID:
string
content:
MessageContent
Returns
Promise
<
Message
<
TextChannel
>
>
edit
Permission
edit
Permission
(
overwriteID
:
string
, allow
:
number
, deny
:
number
, type
:
"role"
|
"member"
, reason
?:
string
)
:
Promise
<
PermissionOverwrite
>
Parameters
overwriteID:
string
allow:
number
deny:
number
type:
"role"
|
"member"
Optional
reason:
string
Returns
Promise
<
PermissionOverwrite
>
edit
Position
edit
Position
(
position
:
number
)
:
Promise
<
void
>
Parameters
position:
number
Returns
Promise
<
void
>
get
Invites
get
Invites
(
)
:
Promise
<
ChannelInvite
[]
>
Returns
Promise
<
ChannelInvite
[]
>
get
Message
get
Message
(
messageID
:
string
)
:
Promise
<
Message
<
TextChannel
>
>
Parameters
messageID:
string
Returns
Promise
<
Message
<
TextChannel
>
>
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
<
TextChannel
>
[]
>
Parameters
Optional
limit:
number
Optional
before:
string
Optional
after:
string
Optional
around:
string
Returns
Promise
<
Message
<
TextChannel
>
[]
>
get
Pins
get
Pins
(
)
:
Promise
<
Message
<
TextChannel
>
[]
>
Returns
Promise
<
Message
<
TextChannel
>
[]
>
get
Webhooks
get
Webhooks
(
)
:
Promise
<
Webhook
[]
>
Returns
Promise
<
Webhook
[]
>
inspect
inspect
(
)
:
TextChannel
Returns
TextChannel
permissions
Of
permissions
Of
(
memberID
:
string
)
:
Permission
Parameters
memberID:
string
Returns
Permission
pin
Message
pin
Message
(
messageID
:
string
)
:
Promise
<
void
>
Parameters
messageID:
string
Returns
Promise
<
void
>
purge
purge
(
limit
:
number
, filter
?:
(
message
:
Message
<
TextChannel
>
)
=>
boolean
, before
?:
string
, after
?:
string
, reason
?:
string
)
:
Promise
<
number
>
Parameters
limit:
number
Optional
filter:
(
message
:
Message
<
TextChannel
>
)
=>
boolean
(
message
:
Message
<
TextChannel
>
)
:
boolean
Parameters
message:
Message
<
TextChannel
>
Returns
boolean
Optional
before:
string
Optional
after:
string
Optional
reason:
string
Returns
Promise
<
number
>
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
>
remove
Message
Reaction
Emoji
remove
Message
Reaction
Emoji
(
messageID
:
string
, reaction
:
string
)
:
Promise
<
void
>
Parameters
messageID:
string
reaction:
string
Returns
Promise
<
void
>
remove
Message
Reactions
remove
Message
Reactions
(
messageID
:
string
)
:
Promise
<
void
>
Parameters
messageID:
string
Returns
Promise
<
void
>
send
Typing
send
Typing
(
)
:
Promise
<
void
>
Returns
Promise
<
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
Text
Channel
constructor
client
created
At
guild
id
last
MessageID
last
Pin
Timestamp
mention
messages
name
nsfw
parentID
permission
Overwrites
position
rate
Limit
Per
User
topic
type
add
Message
Reaction
create
Invite
create
Message
create
Webhook
delete
delete
Message
delete
Messages
delete
Permission
edit
edit
Message
edit
Permission
edit
Position
get
Invites
get
Message
get
Message
Reaction
get
Messages
get
Pins
get
Webhooks
inspect
permissions
Of
pin
Message
purge
remove
Message
Reaction
remove
Message
Reaction
Emoji
remove
Message
Reactions
send
Typing
toJSON
unpin
Message
unsend
Message
from
Generated using
TypeDoc