@discord-types/builders/thread/messageThread
API reference for @discord-types/builders/thread/messageThread
@discord-types/builders/thread/messageThread
Types
MessageThread
Raw Type
type MessageThread = MessageThread.Prototype, & {
name: string?,
autoArchiveDuration: number?,
rateLimitPerUser: number?
}
Intersection with variants:
JSON
Raw Type
type JSON = MessageThread.Prototype.build(nil :: any),
Functions
MessageThread.Prototype.setName
[[ Sets the name of the thread. Name must be between 1-100 characters. ]]
Function Signature
--[[
Sets the name of the thread.
Name must be between 1-100 characters.
]]
function MessageThread.Prototype.setName(self: MessageThread, name: string) -> MessageThread end
Arguments
name
Returns
ret1
MessageThread.Prototype.setAutoArchiveDuration
[[ Sets the duration in minutes before the thread is automatically archived. Duration must be 60, 1440, 4320, or 10080. ]]
Function Signature
--[[
Sets the duration in minutes before the thread is automatically archived.
Duration must be 60, 1440, 4320, or 10080.
]]
function MessageThread.Prototype.setAutoArchiveDuration(self: MessageThread, duration: number) -> MessageThread end
Arguments
duration
Returns
ret1
MessageThread.Prototype.setRateLimitPerUser
[[ Sets the rate limit per user in the thread. Rate limit must be less than or equal to 21600 seconds. ]]
Function Signature
--[[
Sets the rate limit per user in the thread.
Rate limit must be less than or equal to 21600 seconds.
]]
function MessageThread.Prototype.setRateLimitPerUser(self: MessageThread, rateLimit: number) -> MessageThread end
Arguments
rateLimit
Returns
ret1
MessageThread.Prototype.build
[[ Responsible for building the MessageThread JSON that can be parsed by the Discord API. ]]
Function Signature
--[[
Responsible for building the MessageThread JSON that can be parsed by the Discord API.
]]
function MessageThread.Prototype.build(self: MessageThread) -> JSON end
Returns
ret1
MessageThread.Interface.new
[[ Responsible for creating a new MessageThread.
```lua
``` ]]
Function Signature
--[[
Responsible for creating a new MessageThread.
\`\`\`lua
\`\`\`
]]
function MessageThread.Interface.new(resource: {
name: string?,
autoArchiveDuration: number?,
rateLimitPerUser: number?
}?) -> MessageThread end
Arguments
resource
This field is optional and may not be specified
{name: string?, autoArchiveDuration: number?, rateLimitPerUser: number?}?
Returns
ret1
Last updated on