MessageThread
Implementation of discords MessageThread object as a Luau builder.
https://discord.com/developers/docs/resources/channel#start-thread-from-message-json-params
Properties
The MessageThread instance has no set properties!
Methods
The MessageThread instance has no set methods!
Functions
setName
MessageThread . setName () -> ()
self: MessageThread
name: string
Sets the name of the thread. Name must be between 1-100 characters.
setAutoArchiveDuration
MessageThread . setAutoArchiveDuration () -> ()
self: MessageThread
duration: number
Sets the duration in minutes before the thread is automatically archived. Duration must be 60, 1440, 4320, or 10080.
setRateLimitPerUser
MessageThread . setRateLimitPerUser () -> ()
self: MessageThread
rateLimit: number
Sets the rate limit per user in the thread. Rate limit must be less than or equal to 21600 seconds.
build
MessageThread . build () -> ()
self: MessageThread
Responsible for building the MessageThread JSON that can be parsed by the Discord API.
new
Responsible for creating a new MessageThread.
local thread = MessageThread.new({ name = "My Thread", autoArchiveDuration = 60, rateLimitPerUser = 0})