Skip to content

Public

Implementation of the Discord Public class in Luau

https://discord.com/developers/docs/resources/channel#channel-object

Properties

state

Public.state  :: Classes.State

Methods

The Public instance has no set methods!

Functions

sync

Public . sync (

     self: Public
     channelData: apiTypes.ChannelObject
)  -> ()

Responsible for syncing data to this public thread object. This is typically called by the API when this object is created or updated.

new

Public . new (

     state: state.State
     channelData: apiTypes.ChannelObject
)  -> ()

Responsible for constructing this class.