NoMessageThread
Implementation of discords NoMessageThread object as a Luau builder.
https://discord.com/developers/docs/resources/channel#start-thread-without-message-json-params
Properties
The NoMessageThread instance has no set properties!
Methods
The NoMessageThread instance has no set methods!
Functions
setName
NoMessageThread . setName () -> ()
self: NoMessageThread
name: string
Sets the name of the thread. Name must be between 1-100 characters.
setAutoArchiveDuration
NoMessageThread . setAutoArchiveDuration () -> ()
self: NoMessageThread
duration: number
Sets the duration in minutes before the thread is automatically archived. Valid values are 60, 1440, 4320, or 10080.
setType
NoMessageThread . setType () -> ()
self: NoMessageThread
type: apiTypes.ChannelType
Sets the type of thread channel. Must be a valid Discord channel type.
setInvitable
NoMessageThread . setInvitable () -> ()
self: NoMessageThread
invitable: boolean
Sets whether non-moderators can add other non-moderators to the thread.
setRateLimitPerUser
NoMessageThread . setRateLimitPerUser () -> ()
self: NoMessageThread
rateLimit: number
Sets the amount of seconds a user has to wait before sending another message. Must be less than or equal to 21600 seconds (6 hours).
build
NoMessageThread . build () -> ()
self: NoMessageThread
Responsible for building the NoMessageThread JSON that can be parsed by the Discord API.
new
NoMessageThread . new () -> ()
resource: {
name: string?,
autoArchiveDuration: number?,
type: apiTypes.ChannelType?,
invitable: boolean?,
rateLimitPerUser: number?,
}
Responsible for creating a new NoMessageThread.