Search
Preparing search index...
The search index is not available
不和 (Fuwa)
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
不和 (Fuwa)
Channel
Class Channel<T>
Type parameters
T
:
APIChannel
=
APIChannel
Hierarchy
BaseStructure
<
T
>
Channel
GuildChannel
BaseTextChannel
Index
Constructors
constructor
Properties
client
guild
Id
id
type
Accessors
created
At
created
Timestamp
guild
Methods
_deserialise
_set_
guild
fetch
toJSON
create
toJSON
Constructors
constructor
new
Channel
<
T
>
(
client
:
Client
, data
?:
T
)
:
Channel
<
T
>
Type parameters
T
:
APIChannel
=
APIChannel
Parameters
client:
Client
Optional
data:
T
Returns
Channel
<
T
>
Properties
client
client
:
Client
guild
Id
guild
Id
:
null
|
string
= null
id
id
:
string
type
type
:
ChannelType
= ChannelType.GuildCategory
Accessors
created
At
get
createdAt
(
)
:
Date
Returns
Date
created
Timestamp
get
createdTimestamp
(
)
:
number
Returns
number
guild
get
guild
(
)
:
null
|
Guild
Returns
null
|
Guild
Methods
_deserialise
_deserialise
(
data
:
T
&
{
guild_id
?:
string
}
)
:
Channel
<
T
>
Parameters
data:
T
&
{
guild_id
?:
string
}
Returns
Channel
<
T
>
_set_
guild
_set_
guild
(
id
:
string
)
:
Channel
<
T
>
Parameters
id:
string
Returns
Channel
<
T
>
fetch
fetch
(
)
:
Promise
<
Channel
<
T
>
>
Returns
Promise
<
Channel
<
T
>
>
toJSON
toJSON
(
)
:
T
Returns
T
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
toJSON
toJSON
(
data
:
any
)
:
any
Parameters
data:
any
Returns
any
Exports
Internals
Tokens
Externals
Types
Channel
constructor
client
guild
Id
id
type
created
At
created
Timestamp
guild
_deserialise
_set_
guild
fetch
toJSON
create
toJSON
Generated using
TypeDoc