Search
Preparing search index...
The search index is not available
不和 (Fuwa)
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
不和 (Fuwa)
GuildChannel
Class GuildChannel<T>
Type parameters
T
:
APIGuildChannel
<
GuildChannelType
>
=
APIGuildChannel
<
GuildChannelType
>
Hierarchy
Channel
<
T
>
GuildChannel
BaseTextChannelInGuild
Index
Constructors
constructor
Properties
client
guild
Id
id
name
nsfw
parent
Id
position
type
Accessors
children
created
At
created
Timestamp
delete
guild
parent
Methods
_deserialise
_set_
guild
fetch
set
Name
set
Nsfw
set
Parent
set
Position
toJSON
create
resolve
toJSON
Constructors
constructor
new
Guild
Channel
<
T
>
(
client
:
Client
, data
?:
T
)
:
GuildChannel
<
T
>
Type parameters
T
:
APIGuildChannel
<
GuildChannelType
,
T
>
=
APIGuildChannel
<
GuildChannelType
>
Parameters
client:
Client
Optional
data:
T
Returns
GuildChannel
<
T
>
Properties
client
client
:
Client
guild
Id
guild
Id
:
null
|
string
= null
id
id
:
string
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
[]
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
parent
get
parent
(
)
:
undefined
|
GuildChannels
Returns
undefined
|
GuildChannels
Methods
_deserialise
_deserialise
(
data
:
T
)
:
GuildChannel
<
T
>
Parameters
data:
T
Returns
GuildChannel
<
T
>
_set_
guild
_set_
guild
(
id
:
string
)
:
GuildChannel
<
T
>
Parameters
id:
string
Returns
GuildChannel
<
T
>
fetch
fetch
(
)
:
Promise
<
GuildChannel
<
T
>
>
Returns
Promise
<
GuildChannel
<
T
>
>
set
Name
set
Name
(
name
:
string
)
:
Promise
<
GuildChannel
<
T
>
>
Parameters
name:
string
Returns
Promise
<
GuildChannel
<
T
>
>
set
Nsfw
set
Nsfw
(
nsfw
:
boolean
)
:
Promise
<
GuildChannel
<
T
>
>
Parameters
nsfw:
boolean
Returns
Promise
<
GuildChannel
<
T
>
>
set
Parent
set
Parent
(
parent
:
string
|
GuildChannels
)
:
void
Parameters
parent:
string
|
GuildChannels
Returns
void
set
Position
set
Position
(
position
:
number
)
:
Promise
<
GuildChannel
<
T
>
>
Parameters
position:
number
Returns
Promise
<
GuildChannel
<
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
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
Guild
Channel
constructor
client
guild
Id
id
name
nsfw
parent
Id
position
type
children
created
At
created
Timestamp
delete
guild
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.