Search
Preparing search index...
The search index is not available
不和 (Fuwa)
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
不和 (Fuwa)
BaseGuildTextChannel
Class BaseGuildTextChannel
Hierarchy
BaseTextChannelInGuild
BaseGuildTextChannel
GuildTextChannel
Index
Constructors
constructor
Properties
client
guild
Id
id
last
Message
Id
last
Pin
At
messages
name
nsfw
parent
Id
position
type
Accessors
children
create
Message
created
At
created
Timestamp
delete
guild
last
Pin
Timestamp
parent
Methods
_deserialise
_set_
guild
fetch
set
Name
set
Nsfw
set
Parent
set
Position
toJSON
create
resolve
toJSON
Constructors
constructor
new
Base
Guild
Text
Channel
(
client
:
Client
)
:
BaseGuildTextChannel
Parameters
client:
Client
Returns
BaseGuildTextChannel
Properties
client
client
:
Client
guild
Id
guild
Id
:
null
|
string
= null
id
id
:
string
last
Message
Id
last
Message
Id
:
null
|
string
= null
last
Pin
At
last
Pin
At
:
null
|
Date
= null
messages
messages
:
ChannelMessageManager
= ...
name
name
:
string
= ''
nsfw
nsfw
:
boolean
= false
parent
Id
parent
Id
:
null
|
string
= null
position
position
:
number
= 0
type
type
:
ChannelType
= ChannelType.GuildCategory
Accessors
children
get
children
(
)
:
GuildChannels
[]
Returns
GuildChannels
[]
create
Message
get
createMessage
(
)
:
(
data
:
string
|
MessagePayload
|
MessagePayloadData
, cache
?:
boolean
)
=>
Promise
<
Message
<
TextChannel
>
>
Returns
(
data
:
string
|
MessagePayload
|
MessagePayloadData
, cache
?:
boolean
)
=>
Promise
<
Message
<
TextChannel
>
>
(
data
:
string
|
MessagePayload
|
MessagePayloadData
, cache
?:
boolean
)
:
Promise
<
Message
<
TextChannel
>
>
Parameters
data:
string
|
MessagePayload
|
MessagePayloadData
cache:
boolean
= false
Returns
Promise
<
Message
<
TextChannel
>
>
created
At
get
createdAt
(
)
:
Date
Returns
Date
created
Timestamp
get
createdTimestamp
(
)
:
number
Returns
number
delete
get
delete
(
)
:
(
...
args
:
[
reason
?:
string
]
)
=>
Promise
<
void
>
Returns
(
...
args
:
[
reason
?:
string
]
)
=>
Promise
<
void
>
(
...
args
:
[
reason
?:
string
]
)
:
Promise
<
void
>
Parameters
Rest
...
args:
[
reason
?:
string
]
Returns
Promise
<
void
>
guild
get
guild
(
)
:
null
|
Guild
Returns
null
|
Guild
last
Pin
Timestamp
get
lastPinTimestamp
(
)
:
null
|
number
Returns
null
|
number
parent
get
parent
(
)
:
undefined
|
GuildChannels
Returns
undefined
|
GuildChannels
Methods
_deserialise
_deserialise
(
data
:
APIGuildTextChannel
<
GuildTextChannelType
>
)
:
BaseGuildTextChannel
Parameters
data:
APIGuildTextChannel
<
GuildTextChannelType
>
Returns
BaseGuildTextChannel
_set_
guild
_set_
guild
(
id
:
string
)
:
BaseGuildTextChannel
Parameters
id:
string
Returns
BaseGuildTextChannel
fetch
fetch
(
)
:
Promise
<
BaseGuildTextChannel
>
Returns
Promise
<
BaseGuildTextChannel
>
set
Name
set
Name
(
name
:
string
)
:
Promise
<
BaseGuildTextChannel
>
Parameters
name:
string
Returns
Promise
<
BaseGuildTextChannel
>
set
Nsfw
set
Nsfw
(
nsfw
:
boolean
)
:
Promise
<
BaseGuildTextChannel
>
Parameters
nsfw:
boolean
Returns
Promise
<
BaseGuildTextChannel
>
set
Parent
set
Parent
(
parent
:
string
|
GuildChannels
)
:
void
Parameters
parent:
string
|
GuildChannels
Returns
void
set
Position
set
Position
(
position
:
number
)
:
Promise
<
BaseGuildTextChannel
>
Parameters
position:
number
Returns
Promise
<
BaseGuildTextChannel
>
toJSON
toJSON
(
)
:
APIGuildChannel
<
GuildChannelType
>
Returns
APIGuildChannel
<
GuildChannelType
>
Static
create
create
(
client
:
Client
, data
:
APIChannelBase
<
ChannelType
>
&
{
guild_id
?:
string
}
)
:
Channels
<
DMChannel
|
GuildChannels
|
Channel
<
APIChannel
>
,
APIChannel
>
Parameters
client:
Client
data:
APIChannelBase
<
ChannelType
>
&
{
guild_id
?:
string
}
Returns
Channels
<
DMChannel
|
GuildChannels
|
Channel
<
APIChannel
>
,
APIChannel
>
Static
resolve
resolve
(
client
:
Client
, data
:
APIGuildChannel
<
GuildChannelType
>
, guild
:
Guild
)
:
GuildChannels
Creates a type-strong version of the channel, based on its type.
Parameters
client:
Client
data:
APIGuildChannel
<
GuildChannelType
>
guild:
Guild
Returns
GuildChannels
Static
toJSON
toJSON
(
data
:
any
)
:
any
Parameters
data:
any
Returns
any
Exports
Internals
Tokens
Externals
Types
Base
Guild
Text
Channel
constructor
client
guild
Id
id
last
Message
Id
last
Pin
At
messages
name
nsfw
parent
Id
position
type
children
create
Message
created
At
created
Timestamp
delete
guild
last
Pin
Timestamp
parent
_deserialise
_set_
guild
fetch
set
Name
set
Nsfw
set
Parent
set
Position
toJSON
create
resolve
toJSON
Generated using
TypeDoc
Creates a type-strong version of the channel, based on its type.