DiscordLua
discorddiscord
v1.2.4
Install

ThreadAutoArchiveDuration

Enum
On this page

discord.ThreadAutoArchiveDuration lists the named constants for this enumeration. Prefer these names over hardcoded literals.

Values

discord.ThreadAutoArchiveDuration.OneHour
60
One Hour. Use the symbolic name in bot code rather than the raw value.
discord.ThreadAutoArchiveDuration.OneDay
1440
One Day. Use the symbolic name in bot code rather than the raw value.
discord.ThreadAutoArchiveDuration.ThreeDays
4320
Three Days. Use the symbolic name in bot code rather than the raw value.
discord.ThreadAutoArchiveDuration.OneWeek
10080
One Week. Use the symbolic name in bot code rather than the raw value.

Usage

Read members as discord.ThreadAutoArchiveDuration.Name. Do not hard-code numeric literals when a symbolic name exists.

Example

lua
local discord = require("discord")
print(discord.ThreadAutoArchiveDuration.OneHour)
Search Ctrl K Navigate Open Esc