Skip to content

GuildPublicThreadChannel

Represents the implementation of a Discord Public Thread channel.

Properties

ownerId

GuildPublicThreadChannel.ownerId  :: string

This property was inherited from Objects.BaseGuildThread

messageCount

GuildPublicThreadChannel.messageCount  :: number

This property was inherited from Objects.BaseGuildThread

memberCount

GuildPublicThreadChannel.memberCount  :: number

This property was inherited from Objects.BaseGuildThread

totalMessageSent

GuildPublicThreadChannel.totalMessageSent  :: number

This property was inherited from Objects.BaseGuildThread

threadMetadata

GuildPublicThreadChannel.threadMetadata  :: {
       archived: boolean,
       autoArchiveDuration: number,
       archiveTimestamp: string,
       locked: boolean,
       invitable: boolean?,
       createTimestamp: string?,
    }

This property was inherited from Objects.BaseGuildThread

availableTags

GuildPublicThreadChannel.availableTags  :: {
       { id: string,
       name: string,
       moderated: boolean,
       emojiId: string?,
       emojiName: string?,
    }

This property was inherited from Objects.BaseGuildThread

appliedTags

GuildPublicThreadChannel.appliedTags  :: { string }

This property was inherited from Objects.BaseGuildThread

defaultReactionEmoji

GuildPublicThreadChannel.defaultReactionEmoji  :: Objects.DiscordEmoji

This property was inherited from Objects.BaseGuildThread

Methods

joinThreadAsync

GuildPublicThreadChannel : joinThreadAsync ()  -> Vendor.Future<unknown>

Joins the current discord bot into the thread

This function was inherited from Objects.BaseGuildThread

addMemberToThreadAsync

GuildPublicThreadChannel : addMemberToThreadAsync (

     userId: string
)  -> Vendor.Future<unknown>

Adds the passed member to the thread channel

This function was inherited from Objects.BaseGuildThread

leaveThreadAsync

GuildPublicThreadChannel : leaveThreadAsync ()  -> Vendor.Future<unknown>

Leaves the thread channel if the discord bot is in the channel.

This function was inherited from Objects.BaseGuildThread

removeMemberFromThreadAsync

GuildPublicThreadChannel : removeMemberFromThreadAsync (

     userId: string
)  -> Vendor.Future<unknown>

Removes the passed user id from the current thread channel

This function was inherited from Objects.BaseGuildThread

getThreadMemberAsync

GuildPublicThreadChannel : getThreadMemberAsync (

     userId: string
)  -> Vendor.Future<{ DiscordGuildMember }>

Returns a list of members that are active in the current thread channel

This function was inherited from Objects.BaseGuildThread

removeMemberFromThreadAsync

GuildPublicThreadChannel : removeMemberFromThreadAsync (

     userId: string
)  -> Vendor.Future<{ DiscordGuildMember }>

Returns a list of members that are active in the current thread channel

This function was inherited from Objects.BaseGuildThread

Functions

The GuildPublicThreadChannel instance has no set functions!