Channel
Extended by
GuildChannelCategory
GuildVoiceChannel
ThreadLikeChannel
MentionChannel
ThreadChannel
GuildChannel
DMChannel
Constructors
new Channel()
new Channel(
client
,channel
,resolved
):Channel
Parameters
Parameter | Type |
---|---|
client | Client <Transformers , CacheManagerStructure > |
channel | Structure |
resolved | boolean |
Returns
Defined in
transformers/src/factories/channel.ts:76
Properties
id
readonly
id:string
Defined in
transformers/src/factories/channel.ts:69
type
readonly
type:ChannelType
Defined in
transformers/src/factories/channel.ts:70
lastPinTimestamp
readonly
lastPinTimestamp:undefined
|null
|string
Defined in
transformers/src/factories/channel.ts:71
flags
readonly
flags:number
Defined in
transformers/src/factories/channel.ts:72
client
readonly
client:Client
<Transformers
,CacheManagerStructure
>
Defined in
transformers/src/factories/channel.ts:74
Methods
send()
send(content, options)
send(
content
,options
?):Promise
<Message
>
Parameters
Parameter | Type |
---|---|
content | string |
options ? | MessageSendOptions |
Returns
Promise
<Message
>
Defined in
transformers/src/factories/channel.ts:88
send(options)
send(
options
):Promise
<Message
>
Parameters
Parameter | Type |
---|---|
options | MessageSendOptions |
Returns
Promise
<Message
>
Defined in
transformers/src/factories/channel.ts:89
isText()
isText():
this is GuildTextChannel
Returns
this is GuildTextChannel
Defined in
transformers/src/factories/channel.ts:129
isDM()
isDM():
this is DMChannel
Returns
this is DMChannel
Defined in
transformers/src/factories/channel.ts:133
isVoice()
isVoice():
this is GuildVoiceChannel
Returns
this is GuildVoiceChannel
Defined in
transformers/src/factories/channel.ts:137
isGroupDM()
isGroupDM():
this is GroupDMChannel
Returns
this is GroupDMChannel
Defined in
transformers/src/factories/channel.ts:141
isCategory()
isCategory():
this is GuildChannelCategory
Returns
this is GuildChannelCategory
Defined in
transformers/src/factories/channel.ts:145
isAnnouncement()
isAnnouncement():
this is GuildAnnouncementChannel
Returns
this is GuildAnnouncementChannel
Defined in
transformers/src/factories/channel.ts:149
isAnnouncementThread()
isAnnouncementThread():
this is ThreadChannel
Returns
this is ThreadChannel
Defined in
transformers/src/factories/channel.ts:153
isPublicThread()
isPublicThread():
this is ThreadChannel
Returns
this is ThreadChannel
Defined in
transformers/src/factories/channel.ts:157
isPrivateThread()
isPrivateThread():
this is ThreadChannel
Returns
this is ThreadChannel
Defined in
transformers/src/factories/channel.ts:161
isStageVoice()
isStageVoice():
this is GuildChannel
Returns
this is GuildChannel
Defined in
transformers/src/factories/channel.ts:165
isDirectory()
isDirectory():
this is GuildChannel
Returns
this is GuildChannel
Defined in
transformers/src/factories/channel.ts:169
isForum()
isForum():
this is ThreadLikeChannel
Returns
this is ThreadLikeChannel
Defined in
transformers/src/factories/channel.ts:173
isMedia()
isMedia():
this is ThreadLikeChannel
Returns
this is ThreadLikeChannel