ThreadOnlyMethods
Extends
BaseChannel
<ChannelType
>.TopicableGuildChannel
.DiscordBase
Constructors
new ThreadOnlyMethods(client, data)
Parameters
Parameter | Type | Description |
---|---|---|
client | UsingClient | - |
data | Object | Unique ID of the object |
data.id | string | - |
Returns
Inherited from
TopicableGuildChannel
.constructor
Source
seyfert/src/structures/extra/DiscordBase.ts:7
Properties
Property | Modifier | Type | Inherited from |
---|---|---|---|
client | readonly | UsingClient | TopicableGuildChannel .client |
id | public | string | TopicableGuildChannel .id |
type | public | ChannelType | TopicableGuildChannel .type |
Accessors
createdAt
createdAt gets the creation Date instace of the current object.
Returns
Date
Source
seyfert/src/structures/extra/DiscordBase.ts:27
createdTimestamp
Create a timestamp for the current object.
Returns
number
Source
seyfert/src/structures/extra/DiscordBase.ts:20
url
The URL to the channel
Returns
string
Source
seyfert/src/structures/channels.ts:58
Methods
delete()
Parameters
Parameter | Type |
---|---|
reason ? | string |
Returns
Promise
<AllChannels
>
Inherited from
Source
seyfert/src/structures/channels.ts:66
edit()
Parameters
Parameter | Type |
---|---|
body | RESTPatchAPIChannelJSONBody |
reason ? | string |
Returns
Promise
<AllChannels
>
Inherited from
Source
seyfert/src/structures/channels.ts:70
fetch()
Parameters
Parameter | Type | Default value |
---|---|---|
force | boolean | false |
Returns
Promise
<AllChannels
>
Inherited from
Source
seyfert/src/structures/channels.ts:62
is()
Type parameters
Type parameter |
---|
T extends keyof IChannelTypes [] |
Parameters
Parameter | Type |
---|---|
channelTypes | T |
Returns
this is IChannelTypes[T[number]]
Inherited from
Source
seyfert/src/structures/channels.ts:133
isCategory()
Returns
this is CategoryChannel
Inherited from
TopicableGuildChannel
.isCategory
Source
seyfert/src/structures/channels.ts:113
isDM()
Returns
this is DMChannel
Inherited from
Source
seyfert/src/structures/channels.ts:89
isDirectory()
Returns
this is DirectoryChannel
Inherited from
TopicableGuildChannel
.isDirectory
Source
seyfert/src/structures/channels.ts:101
isForum()
Returns
this is ForumChannel
Inherited from
Source
seyfert/src/structures/channels.ts:93
isGuildTextable()
Returns
this is AllGuildTextableChannels
Inherited from
TopicableGuildChannel
.isGuildTextable
Source
seyfert/src/structures/channels.ts:125
isMedia()
Returns
this is MediaChannel
Inherited from
Source
seyfert/src/structures/channels.ts:85
isNews()
Returns
this is NewsChannel
Inherited from
Source
seyfert/src/structures/channels.ts:117
isStage()
Returns
this is StageChannel
Inherited from
Source
seyfert/src/structures/channels.ts:81
isTextGuild()
Returns
this is TextGuildChannel
Inherited from
TopicableGuildChannel
.isTextGuild
Source
seyfert/src/structures/channels.ts:109
isTextable()
Returns
this is AllTextableChannels
Inherited from
TopicableGuildChannel
.isTextable
Source
seyfert/src/structures/channels.ts:121
isThread()
Returns
this is ThreadChannel
Inherited from
TopicableGuildChannel
.isThread
Source
seyfert/src/structures/channels.ts:97
isThreadOnly()
Returns
this is MediaChannel | ForumChannel
Inherited from
TopicableGuildChannel
.isThreadOnly
Source
seyfert/src/structures/channels.ts:129
isVoice()
Returns
this is VoiceChannel
Inherited from
Source
seyfert/src/structures/channels.ts:105
setAutoArchiveDuration()
Parameters
Parameter | Type |
---|---|
duration | ThreadAutoArchiveDuration |
reason ? | string |
Returns
Promise
<AllChannels
>
Source
seyfert/src/structures/channels.ts:318
setReactionEmoji()
Parameters
Parameter | Type |
---|---|
emoji | APIGuildForumDefaultReactionEmoji |
reason ? | string |
Returns
Promise
<AllChannels
>
Source
seyfert/src/structures/channels.ts:322
setSortOrder()
Parameters
Parameter | Type |
---|---|
sort | SortOrderType |
reason ? | string |
Returns
Promise
<AllChannels
>
Source
seyfert/src/structures/channels.ts:326
setTags()
Parameters
Parameter | Type |
---|---|
tags | APIGuildForumTag [] |
reason ? | string |
Returns
Promise
<AllChannels
>
Source
seyfert/src/structures/channels.ts:314
setThreadRateLimit()
Parameters
Parameter | Type |
---|---|
rate | number |
reason ? | string |
Returns
Promise
<AllChannels
>
Source
seyfert/src/structures/channels.ts:330
setTopic()
Parameters
Parameter | Type |
---|---|
topic | null | string |
reason ? | string |
Returns
Promise
<AllChannels
>
Inherited from
TopicableGuildChannel
.setTopic
Source
seyfert/src/structures/channels.ts:306
thread()
Parameters
Parameter | Type |
---|---|
body | RESTPostAPIGuildForumThreadsJSONBody |
reason ? | string |
Returns
Promise
<ThreadChannel
>
Source
seyfert/src/structures/channels.ts:334
toString()
Returns
string
Inherited from
TopicableGuildChannel
.toString