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
to
String
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
last
Pin
Timestamp
last
Pin
Timestamp
:
null
|
number
mention
mention
:
string
messages
messages
:
Collection
<
Message
<
TextChannel
>
>
name
name
:
string
nsfw
nsfw
:
boolean
parentID
parentID
:
null
|
string
permission
Overwrites
permission
Overwrites
:
Collection
<
PermissionOverwrite
>
position
position
:
number
rate
Limit
Per
User
rate
Limit
Per
User
:
number
topic
topic
:
null
|
string
type
type
:
0
|
5
Methods
add
Message
Reaction
add
Message
Reaction
(
messageID
:
string
, reaction
:
string
)
:
Promise
<
void
>
add
Message
Reaction
(
messageID
:
string
, reaction
:
string
, userID
:
string
)
:
Promise
<
void
>
Parameters
messageID:
string
reaction:
string
Returns
Promise
<
void
>
deprecated
Parameters
messageID:
string
reaction:
string
userID:
string
Returns
Promise
<
void
>
create
Invite
create
Invite
(
options
?:
CreateInviteOptions
, reason
?:
string
)
:
Promise
<
Invite
<
"withMetadata"
,
TextChannel
>
>
Parameters
Optional
options:
CreateInviteOptions
Optional
reason:
string
Returns
Promise
<
Invite
<
"withMetadata"
,
TextChannel
>
>
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
?:
undefined
|
null
|
string
;
name
:
string
}
, reason
?:
string
)
:
Promise
<
Webhook
>
Parameters
options:
{
avatar
?:
undefined
|
null
|
string
;
name
:
string
}
Optional
avatar
?:
undefined
|
null
|
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
:
Pick
<
EditChannelOptions
,
"bitrate"
|
"nsfw"
|
"parentID"
|
"rateLimitPerUser"
|
"topic"
|
"userLimit"
|
"name"
|
"rtcRegion"
|
"videoQualityMode"
>
, reason
?:
string
)
:
Promise
<
TextChannel
>
Parameters
options:
Pick
<
EditChannelOptions
,
"bitrate"
|
"nsfw"
|
"parentID"
|
"rateLimitPerUser"
|
"topic"
|
"userLimit"
|
"name"
|
"rtcRegion"
|
"videoQualityMode"
>
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
|
bigint
, deny
:
number
|
bigint
, type
:
PermissionType
, reason
?:
string
)
:
Promise
<
PermissionOverwrite
>
Parameters
overwriteID:
string
allow:
number
|
bigint
deny:
number
|
bigint
type:
PermissionType
Optional
reason:
string
Returns
Promise
<
PermissionOverwrite
>
edit
Position
edit
Position
(
position
:
number
, options
?:
EditChannelPositionOptions
)
:
Promise
<
void
>
Parameters
position:
number
Optional
options:
EditChannelPositionOptions
Returns
Promise
<
void
>
get
Invites
get
Invites
(
)
:
Promise
<
Invite
<
"withMetadata"
,
TextChannel
>
[]
>
Returns
Promise
<
Invite
<
"withMetadata"
,
TextChannel
>
[]
>
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
|
Member
)
:
Permission
Parameters
memberID:
string
|
Member
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
to
String
to
String
(
)
:
string
Returns
string
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
:
BaseData
, client
:
Client
)
:
AnyChannel
Parameters
data:
BaseData
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
to
String
unpin
Message
unsend
Message
from
Generated using
TypeDoc