@discord-types/builders/thread/noMessageThread
API reference for @discord-types/builders/thread/noMessageThread
@discord-types/builders/thread/noMessageThread
Types
NoMessageThread
Raw Type
type NoMessageThread = NoMessageThread.Prototype, & {
name: string?,
autoArchiveDuration: number?,
type: channelTypes.ChannelType?,
invitable: boolean?,
rateLimitPerUser: number?
}
Intersection with variants:
Variant 2
Prop | Type | Description |
---|---|---|
name? | - | |
autoArchiveDuration? | - | |
type? | - | |
invitable? | - | |
rateLimitPerUser? | - |
JSON
Raw Type
type JSON = NoMessageThread.Prototype.build(nil :: any),
Functions
NoMessageThread.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 NoMessageThread.Prototype.setName(self: NoMessageThread, name: string) -> NoMessageThread end
Arguments
name
Returns
ret1
NoMessageThread.Prototype.setAutoArchiveDuration
[[ Sets the duration in minutes before the thread is automatically archived. Valid values are 60, 1440, 4320, or 10080. ]]
Function Signature
--[[
Sets the duration in minutes before the thread is automatically archived.
Valid values are 60, 1440, 4320, or 10080.
]]
function NoMessageThread.Prototype.setAutoArchiveDuration(self: NoMessageThread, duration: number) -> NoMessageThread end
Arguments
duration
Returns
ret1
NoMessageThread.Prototype.setType
[[ Sets the type of thread channel. Must be a valid Discord channel type. ]]
Function Signature
--[[
Sets the type of thread channel.
Must be a valid Discord channel type.
]]
function NoMessageThread.Prototype.setType(self: NoMessageThread, type: channelTypes.ChannelType) -> NoMessageThread end
Arguments
type
Returns
ret1
NoMessageThread.Prototype.setInvitable
[[ Sets whether non-moderators can add other non-moderators to the thread. ]]
Function Signature
--[[
Sets whether non-moderators can add other non-moderators to the thread.
]]
function NoMessageThread.Prototype.setInvitable(self: NoMessageThread, invitable: boolean) -> NoMessageThread end
Arguments
invitable
Returns
ret1
NoMessageThread.Prototype.setRateLimitPerUser
[[ 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). ]]
Function Signature
--[[
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).
]]
function NoMessageThread.Prototype.setRateLimitPerUser(self: NoMessageThread, rateLimit: number) -> NoMessageThread end
Arguments
rateLimit
Returns
ret1
NoMessageThread.Prototype.build
[[ Responsible for building the NoMessageThread JSON that can be parsed by the Discord API. ]]
Function Signature
--[[
Responsible for building the NoMessageThread JSON that can be parsed by the Discord API.
]]
function NoMessageThread.Prototype.build(self: NoMessageThread) -> JSON end
Returns
ret1
NoMessageThread.Interface.new
[[ Responsible for creating a new NoMessageThread.
```lua
``` ]]
Function Signature
--[[
Responsible for creating a new NoMessageThread.
\`\`\`lua
\`\`\`
]]
function NoMessageThread.Interface.new(resource: {
name: string?,
autoArchiveDuration: number?,
type: channelTypes.ChannelType?,
invitable: boolean?,
rateLimitPerUser: number?
}?) -> NoMessageThread end
Arguments
resource
This field is optional and may not be specified
{name: string?, autoArchiveDuration: number?, type: channelTypes.ChannelType?, invitable: boolean?, rateLimitPerUser: number?}?
Returns
ret1
Last updated on