Skip to content

ThreadChannel

Extends

  • ObjectToLower<Omit<APIThreadChannel, "permission_overwrites">>.TextBaseGuildChannel.BaseChannel<ChannelType.PublicThread | ChannelType.AnnouncementThread | ChannelType.PrivateThread>

Constructors

new ThreadChannel(client, data)

1
new ThreadChannel(client: UsingClient, data: APIChannelBase<ChannelType>): ThreadChannel

Parameters

ParameterType
clientUsingClient
dataAPIChannelBase<ChannelType>

Returns

ThreadChannel

Inherited from

BaseChannel.constructor

Source

seyfert/src/structures/channels.ts:47

Properties

PropertyModifierTypeInherited from
appliedTagspublicstring[]ObjectToLower.appliedTags
clientreadonlyUsingClientBaseChannel.client
defaultAutoArchiveDurationpublicundefined | ThreadAutoArchiveDurationTextBaseGuildChannel.defaultAutoArchiveDuration
defaultThreadRateLimitPerUserpublicundefined | numberTextBaseGuildChannel.defaultThreadRateLimitPerUser
flagspublicundefined | ChannelFlagsTextBaseGuildChannel.flags
guildIdpublicundefined | stringTextBaseGuildChannel.guildId
idpublicstringBaseChannel.id
lastMessageIdpublicundefined | null | stringTextBaseGuildChannel.lastMessageId
lastPinTimestamppublicundefined | null | stringTextBaseGuildChannel.lastPinTimestamp
memberpublicundefined | ObjectObjectToLower.member
memberCountpublicundefined | numberObjectToLower.memberCount
messageCountpublicundefined | numberObjectToLower.messageCount
messagespublicObjectTextBaseGuildChannel.messages
messages.crosspostpublic(messageId: string, reason?: string) => Promise<Message>-
messages.deletepublic(messageId: string, reason?: string) => Promise<void>-
messages.editpublic(messageId: string, body: Omit<RESTPatchAPIChannelMessageJSONBody, "components" | "embeds"> & ResolverProps) => Promise<Message>-
messages.fetchpublic(messageId: string) => Promise<Message>-
messages.purgepublic(messages: string[], reason?: string) => Promise<undefined | void>-
messages.writepublic(body: Omit<RESTPostAPIChannelMessageJSONBody, "components" | "embeds" | "poll"> & SendResolverProps) => Promise<Message>-
namepublicstringTextBaseGuildChannel.name
nsfwpublicundefined | booleanTextBaseGuildChannel.nsfw
ownerIdpublicundefined | stringObjectToLower.ownerId
parentIdpublicundefined | null | stringTextBaseGuildChannel.parentId
permissionOverwritespublicObjectTextBaseGuildChannel.permissionOverwrites
permissionOverwrites.fetchpublic() => ReturnCache<undefined | Object[]>-
permissionOverwrites.valuespublic() => Object[][]-
pinspublicObjectTextBaseGuildChannel.pins
pins.deletepublic(messageId: string, reason?: string) => Promise<never>-
pins.fetchpublic() => Promise<Message[]>-
pins.setpublic(messageId: string, reason?: string) => Promise<never>-
positionpublicnumberTextBaseGuildChannel.position
rateLimitPerUserpublicundefined | numberTextBaseGuildChannel.rateLimitPerUser
reactionspublicObjectTextBaseGuildChannel.reactions
reactions.addpublic(messageId: string, emoji: EmojiResolvable) => Promise<void>-
reactions.deletepublic(messageId: string, emoji: EmojiResolvable, userId: string) => Promise<void>-
reactions.fetchpublic(messageId: string, emoji: EmojiResolvable, query?: RESTGetAPIChannelMessageReactionUsersQuery) => Promise<User[]>-
reactions.purgepublic(messageId: string, emoji?: EmojiResolvable) => Promise<void>-
threadMetadatapublicundefined | ObjectObjectToLower.threadMetadata
topicpublicundefined | null | stringTextBaseGuildChannel.topic
totalMessageSentpublicundefined | numberObjectToLower.totalMessageSent
typepublicAnnouncementThread | PublicThread | PrivateThreadBaseChannel.type
webhookspublicObject-
webhooks.createpublic(body: RESTPostAPIChannelWebhookJSONBody) => Promise<Webhook>-
webhooks.listpublic() => Promise<Webhook[]>-

Accessors

createdAt

1
get createdAt(): Date

createdAt gets the creation Date instace of the current object.

Returns

Date

Source

seyfert/src/structures/extra/DiscordBase.ts:27


createdTimestamp

1
get createdTimestamp(): number

Create a timestamp for the current object.

Returns

number

Source

seyfert/src/structures/extra/DiscordBase.ts:20


url

1
get url(): string

The URL to the channel

Returns

string

Source

seyfert/src/structures/channels.ts:58

Methods

delete()

1
delete(reason?: string): Promise<AllChannels>

Parameters

ParameterType
reason?string

Returns

Promise<AllChannels>

Inherited from

BaseChannel.delete

Source

seyfert/src/structures/channels.ts:66


edit()

1
edit(body: RESTPatchAPIChannelJSONBody, reason?: string): Promise<AllChannels>

Parameters

ParameterType
bodyRESTPatchAPIChannelJSONBody
reason?string

Returns

Promise<AllChannels>

Inherited from

BaseChannel.edit

Source

seyfert/src/structures/channels.ts:70


fetch()

1
fetch(force: boolean): Promise<AllChannels>

Parameters

ParameterTypeDefault value
forcebooleanfalse

Returns

Promise<AllChannels>

Inherited from

BaseChannel.fetch

Source

seyfert/src/structures/channels.ts:62


guild()

1
guild(force: boolean): Promise<Guild<"cached"> | Guild<"api">>

Parameters

ParameterTypeDefault value
forcebooleanfalse

Returns

Promise<Guild<"cached"> | Guild<"api">>

Inherited from

TextBaseGuildChannel.guild

Source

seyfert/src/structures/channels.ts:190


is()

1
is<T>(channelTypes: T): this is IChannelTypes[T[number]]

Type parameters

Type parameter
T extends keyof IChannelTypes[]

Parameters

ParameterType
channelTypesT

Returns

this is IChannelTypes[T[number]]

Inherited from

BaseChannel.is

Source

seyfert/src/structures/channels.ts:133


isCategory()

1
isCategory(): this is CategoryChannel

Returns

this is CategoryChannel

Inherited from

BaseChannel.isCategory

Source

seyfert/src/structures/channels.ts:113


isDM()

1
isDM(): this is DMChannel

Returns

this is DMChannel

Inherited from

BaseChannel.isDM

Source

seyfert/src/structures/channels.ts:89


isDirectory()

1
isDirectory(): this is DirectoryChannel

Returns

this is DirectoryChannel

Inherited from

BaseChannel.isDirectory

Source

seyfert/src/structures/channels.ts:101


isForum()

1
isForum(): this is ForumChannel

Returns

this is ForumChannel

Inherited from

BaseChannel.isForum

Source

seyfert/src/structures/channels.ts:93


isGuildTextable()

1
isGuildTextable(): this is AllGuildTextableChannels

Returns

this is AllGuildTextableChannels

Inherited from

BaseChannel.isGuildTextable

Source

seyfert/src/structures/channels.ts:125


isMedia()

1
isMedia(): this is MediaChannel

Returns

this is MediaChannel

Inherited from

BaseChannel.isMedia

Source

seyfert/src/structures/channels.ts:85


isNews()

1
isNews(): this is NewsChannel

Returns

this is NewsChannel

Inherited from

BaseChannel.isNews

Source

seyfert/src/structures/channels.ts:117


isStage()

1
isStage(): this is StageChannel

Returns

this is StageChannel

Inherited from

BaseChannel.isStage

Source

seyfert/src/structures/channels.ts:81


isTextGuild()

1
isTextGuild(): this is TextGuildChannel

Returns

this is TextGuildChannel

Inherited from

BaseChannel.isTextGuild

Source

seyfert/src/structures/channels.ts:109


isTextable()

1
isTextable(): this is AllTextableChannels

Returns

this is AllTextableChannels

Inherited from

BaseChannel.isTextable

Source

seyfert/src/structures/channels.ts:121


isThread()

1
isThread(): this is ThreadChannel

Returns

this is ThreadChannel

Inherited from

BaseChannel.isThread

Source

seyfert/src/structures/channels.ts:97


isThreadOnly()

1
isThreadOnly(): this is MediaChannel | ForumChannel

Returns

this is MediaChannel | ForumChannel

Inherited from

BaseChannel.isThreadOnly

Source

seyfert/src/structures/channels.ts:129


isVoice()

1
isVoice(): this is VoiceChannel

Returns

this is VoiceChannel

Inherited from

BaseChannel.isVoice

Source

seyfert/src/structures/channels.ts:105


join()

1
join(): Promise<ThreadChannel>

Returns

Promise<ThreadChannel>

Source

seyfert/src/structures/channels.ts:465


leave()

1
leave(): Promise<ThreadChannel>

Returns

Promise<ThreadChannel>

Source

seyfert/src/structures/channels.ts:470


memberPermissions()

1
memberPermissions(member: GuildMember, checkAdmin: boolean): Promise<PermissionsBitField>

Parameters

ParameterTypeDefault value
memberGuildMemberundefined
checkAdminbooleantrue

Returns

Promise<PermissionsBitField>

Inherited from

TextBaseGuildChannel.memberPermissions

Source

seyfert/src/structures/channels.ts:178


overwritesFor()

1
overwritesFor(member: GuildMember): Promise<Object>

Parameters

ParameterType
memberGuildMember

Returns

Promise<Object>

MemberTypeValue
everyoneundefined | ObjecteveryoneOverwrites
memberundefined | ObjectmemberOverwrites
rolesObject[]roleOverwrites

Inherited from

TextBaseGuildChannel.overwritesFor

Source

seyfert/src/structures/channels.ts:186


pin()

1
pin(reason?: string): Promise<AllChannels>

Parameters

ParameterType
reason?string

Returns

Promise<AllChannels>

Source

seyfert/src/structures/channels.ts:479


rolePermissions()

1
rolePermissions(role: GuildRole, checkAdmin: boolean): Promise<PermissionsBitField>

Parameters

ParameterTypeDefault value
roleGuildRoleundefined
checkAdminbooleantrue

Returns

Promise<PermissionsBitField>

Inherited from

TextBaseGuildChannel.rolePermissions

Source

seyfert/src/structures/channels.ts:182


setArchived()

1
setArchived(archived: boolean, reason?: string): Promise<AllChannels>

Parameters

ParameterTypeDefault value
archivedbooleantrue
reason?stringundefined

Returns

Promise<AllChannels>

Source

seyfert/src/structures/channels.ts:495


setAutoArchiveDuration()

1
setAutoArchiveDuration(auto_archive_duration: StringToNumber<"60" | "1440" | "4320" | "10080">, reason?: string): Promise<AllChannels>

Parameters

ParameterType
auto_archive_durationStringToNumber<"60" | "1440" | "4320" | "10080">
reason?string

Returns

Promise<AllChannels>

Source

seyfert/src/structures/channels.ts:499


setInvitable()

1
setInvitable(invitable: boolean, reason?: string): Promise<AllChannels>

Parameters

ParameterTypeDefault value
invitablebooleantrue
reason?stringundefined

Returns

Promise<AllChannels>

Source

seyfert/src/structures/channels.ts:503


setLocked()

1
setLocked(locked: boolean, reason?: string): Promise<AllChannels>

Parameters

ParameterTypeDefault value
lockedbooleantrue
reason?stringundefined

Returns

Promise<AllChannels>

Source

seyfert/src/structures/channels.ts:507


setName()

1
setName(name: string, reason?: string): Promise<AllChannels>

Parameters

ParameterType
namestring
reason?string

Returns

Promise<AllChannels>

Inherited from

TextBaseGuildChannel.setName

Source

seyfert/src/structures/channels.ts:202


setParent()

1
setParent(parent_id: null | string, reason?: string): Promise<AllChannels>

Parameters

ParameterType
parent_idnull | string
reason?string

Returns

Promise<AllChannels>

Inherited from

TextBaseGuildChannel.setParent

Source

seyfert/src/structures/channels.ts:206


setPosition()

1
setPosition(position: number, reason?: string): Promise<AllChannels>

Parameters

ParameterType
positionnumber
reason?string

Returns

Promise<AllChannels>

Inherited from

TextBaseGuildChannel.setPosition

Source

seyfert/src/structures/channels.ts:198


setRatelimitPerUser()

1
setRatelimitPerUser(rate_limit_per_user: undefined | null | number): Promise<AllChannels>

Parameters

ParameterType
rate_limit_per_userundefined | null | number

Returns

Promise<AllChannels>

Source

seyfert/src/structures/channels.ts:475


setTags()

1
setTags(applied_tags: string[], reason?: string): Promise<AllChannels>

Parameters

ParameterType
applied_tagsstring[]
reason?string

Returns

Promise<AllChannels>

Source

seyfert/src/structures/channels.ts:487


toString()

1
toString(): string

Returns

string

Inherited from

BaseChannel.toString

Source

seyfert/src/structures/channels.ts:77


typing()

1
typing(): Promise<void>

Returns

Promise<void>

Inherited from

TextBaseGuildChannel.typing

Source

seyfert/src/structures/channels.ts:213


unpin()

1
unpin(reason?: string): Promise<AllChannels>

Parameters

ParameterType
reason?string

Returns

Promise<AllChannels>

Source

seyfert/src/structures/channels.ts:483


__intent__()

__intent__(id)

1
static __intent__(id: "@me"): "DirectMessages"
Parameters
ParameterType
id"@me"
Returns

"DirectMessages"

Inherited from

BaseChannel.__intent__

Source

seyfert/src/structures/channels.ts:51

__intent__(id)

1
static __intent__(id: string): "DirectMessages" | "Guilds"
Parameters
ParameterType
idstring
Returns

"DirectMessages" | "Guilds"

Inherited from

BaseChannel.__intent__

Source

seyfert/src/structures/channels.ts:52


allMethods()

1
static allMethods(ctx: Object): Object

Parameters

ParameterType
ctxObject
ctx.clientUsingClient
ctx.guildIdstring

Returns

Object

MemberTypeValue
create(body: RESTPostAPIGuildChannelJSONBody) => Promise<AllChannels>-
delete(id: string, reason?: string) => Promise<AllChannels>-
edit(id: string, body: RESTPatchAPIChannelJSONBody, reason?: string) => Promise<AllChannels>-
editPositions(body: RESTPatchAPIGuildChannelPositionsJSONBody) => Promise<never>-
fetch(id: string, force: boolean) => Promise<AllChannels>-
list(force: boolean) => Promise<AllChannels[]>-

Inherited from

BaseChannel.allMethods

Source

seyfert/src/structures/channels.ts:137