Package net.dv8tion.jda.api.entities
Enum ThreadChannel.AutoArchiveDuration
- java.lang.Object
-
- java.lang.Enum<ThreadChannel.AutoArchiveDuration>
-
- net.dv8tion.jda.api.entities.ThreadChannel.AutoArchiveDuration
-
- All Implemented Interfaces:
Serializable
,Comparable<ThreadChannel.AutoArchiveDuration>
- Enclosing interface:
- ThreadChannel
public static enum ThreadChannel.AutoArchiveDuration extends Enum<ThreadChannel.AutoArchiveDuration>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TIME_1_HOUR
TIME_1_WEEK
TIME_24_HOURS
TIME_3_DAYS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ThreadChannel.AutoArchiveDuration
fromKey(int minutes)
int
getMinutes()
static ThreadChannel.AutoArchiveDuration
valueOf(String name)
Returns the enum constant of this type with the specified name.static ThreadChannel.AutoArchiveDuration[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TIME_1_HOUR
public static final ThreadChannel.AutoArchiveDuration TIME_1_HOUR
-
TIME_24_HOURS
public static final ThreadChannel.AutoArchiveDuration TIME_24_HOURS
-
TIME_3_DAYS
public static final ThreadChannel.AutoArchiveDuration TIME_3_DAYS
-
TIME_1_WEEK
public static final ThreadChannel.AutoArchiveDuration TIME_1_WEEK
-
-
Method Detail
-
values
public static ThreadChannel.AutoArchiveDuration[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ThreadChannel.AutoArchiveDuration c : ThreadChannel.AutoArchiveDuration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ThreadChannel.AutoArchiveDuration valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getMinutes
public int getMinutes()
-
fromKey
@Nonnull public static ThreadChannel.AutoArchiveDuration fromKey(int minutes)
-
-