ThreadAutoArchiveDuration
EnumOn this page
discord.ThreadAutoArchiveDuration lists the named constants for this enumeration. Prefer these names over hardcoded literals.
Values
discord.ThreadAutoArchiveDuration.OneHour60One Hour. Use the symbolic name in bot code rather than the raw value.
discord.ThreadAutoArchiveDuration.OneDay1440One Day. Use the symbolic name in bot code rather than the raw value.
discord.ThreadAutoArchiveDuration.ThreeDays4320Three Days. Use the symbolic name in bot code rather than the raw value.
discord.ThreadAutoArchiveDuration.OneWeek10080One 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
local discord = require("discord")
print(discord.ThreadAutoArchiveDuration.OneHour)