Search
Preparing search index...
The search index is not available
yuuko
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
yuuko
Eris
NewsChannel
Class NewsChannel
Hierarchy
TextChannel
NewsChannel
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
crosspost
Message
delete
delete
Message
delete
Messages
delete
Permission
edit
edit
Message
edit
Permission
edit
Position
follow
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
get
Created
At
Constructors
constructor
new
News
Channel
(
data
:
BaseData
, guild
:
Guild
, messageLimit
:
number
)
:
NewsChannel
Parameters
data:
BaseData
guild:
Guild
messageLimit:
number
Returns
NewsChannel
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
<
NewsChannel
>
>
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
:
0
topic
topic
:
null
|
string
type
type
:
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"
,
NewsChannel
>
>
Parameters
Optional
options:
CreateInviteOptions
Optional
reason:
string
Returns
Promise
<
Invite
<
"withMetadata"
,
NewsChannel
>
>
create
Message
create
Message
(
content
:
MessageContent
, file
?:
MessageFile
|
MessageFile
[]
)
:
Promise
<
Message
<
NewsChannel
>
>
Parameters
content:
MessageContent
Optional
file:
MessageFile
|
MessageFile
[]
Returns
Promise
<
Message
<
NewsChannel
>
>
create
Webhook
create
Webhook
(
options
:
{
avatar
?:
null
|
string
;
name
:
string
}
, reason
?:
string
)
:
Promise
<
Webhook
>
Parameters
options:
{
avatar
?:
null
|
string
;
name
:
string
}
Optional
avatar
?:
null
|
string
name
:
string
Optional
reason:
string
Returns
Promise
<
Webhook
>
crosspost
Message
crosspost
Message
(
messageID
:
string
)
:
Promise
<
Message
<
NewsChannel
>
>
Parameters
messageID:
string
Returns
Promise
<
Message
<
NewsChannel
>
>
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
:
Omit
<
EditChannelOptions
,
"icon"
|
"ownerID"
>
, reason
?:
string
)
:
Promise
<
NewsChannel
>
Parameters
options:
Omit
<
EditChannelOptions
,
"icon"
|
"ownerID"
>
Optional
reason:
string
Returns
Promise
<
NewsChannel
>
edit
Message
edit
Message
(
messageID
:
string
, content
:
MessageContent
)
:
Promise
<
Message
<
NewsChannel
>
>
Parameters
messageID:
string
content:
MessageContent
Returns
Promise
<
Message
<
NewsChannel
>
>
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
>
follow
follow
(
webhookChannelID
:
string
)
:
Promise
<
ChannelFollow
>
Parameters
webhookChannelID:
string
Returns
Promise
<
ChannelFollow
>
get
Invites
get
Invites
(
)
:
Promise
<
Invite
<
"withMetadata"
,
NewsChannel
>
[]
>
Returns
Promise
<
Invite
<
"withMetadata"
,
NewsChannel
>
[]
>
get
Message
get
Message
(
messageID
:
string
)
:
Promise
<
Message
<
NewsChannel
>
>
Parameters
messageID:
string
Returns
Promise
<
Message
<
NewsChannel
>
>
get
Message
Reaction
get
Message
Reaction
(
messageID
:
string
, reaction
:
string
, options
?:
GetMessageReactionOptions
)
:
Promise
<
User
[]
>
get
Message
Reaction
(
messageID
:
string
, reaction
:
string
, limit
?:
number
, before
?:
string
, after
?:
string
)
:
Promise
<
User
[]
>
Parameters
messageID:
string
reaction:
string
Optional
options:
GetMessageReactionOptions
Returns
Promise
<
User
[]
>
deprecated
Parameters
messageID:
string
reaction:
string
Optional
limit:
number
Optional
before:
string
Optional
after:
string
Returns
Promise
<
User
[]
>
get
Messages
get
Messages
(
options
?:
GetMessagesOptions
)
:
Promise
<
Message
<
NewsChannel
>
[]
>
get
Messages
(
limit
?:
number
, before
?:
string
, after
?:
string
, around
?:
string
)
:
Promise
<
Message
<
NewsChannel
>
[]
>
Parameters
Optional
options:
GetMessagesOptions
Returns
Promise
<
Message
<
NewsChannel
>
[]
>
deprecated
Parameters
Optional
limit:
number
Optional
before:
string
Optional
after:
string
Optional
around:
string
Returns
Promise
<
Message
<
NewsChannel
>
[]
>
get
Pins
get
Pins
(
)
:
Promise
<
Message
<
NewsChannel
>
[]
>
Returns
Promise
<
Message
<
NewsChannel
>
[]
>
get
Webhooks
get
Webhooks
(
)
:
Promise
<
Webhook
[]
>
Returns
Promise
<
Webhook
[]
>
inspect
inspect
(
)
:
NewsChannel
Returns
NewsChannel
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
(
options
:
PurgeChannelOptions
)
:
Promise
<
number
>
purge
(
limit
:
number
, filter
?:
(
message
:
Message
<
NewsChannel
>
)
=>
boolean
, before
?:
string
, after
?:
string
, reason
?:
string
)
:
Promise
<
number
>
Parameters
options:
PurgeChannelOptions
Returns
Promise
<
number
>
deprecated
Parameters
limit:
number
Optional
filter:
(
message
:
Message
<
NewsChannel
>
)
=>
boolean
(
message
:
Message
<
NewsChannel
>
)
:
boolean
Parameters
message:
Message
<
NewsChannel
>
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
Static
get
Created
At
get
Created
At
(
id
:
string
)
:
number
Parameters
id:
string
Returns
number
Exports
Externals
Eris
News
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
crosspost
Message
delete
delete
Message
delete
Messages
delete
Permission
edit
edit
Message
edit
Permission
edit
Position
follow
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
get
Created
At
Generated using
TypeDoc