public static enum Guild.Timeout extends java.lang.Enum<Guild.Timeout>
VoiceChannel
if one is set.Enum Constant and Description |
---|
SECONDS_1800 |
SECONDS_300 |
SECONDS_3600 |
SECONDS_60 |
SECONDS_900 |
Modifier and Type | Method and Description |
---|---|
static Guild.Timeout |
fromKey(int seconds) |
int |
getSeconds()
The amount of seconds represented by this
Guild.Timeout . |
java.lang.String |
toString()
The timeout as a string.
Examples: "60" "300" etc |
static Guild.Timeout |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Guild.Timeout[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Guild.Timeout SECONDS_60
public static final Guild.Timeout SECONDS_300
public static final Guild.Timeout SECONDS_900
public static final Guild.Timeout SECONDS_1800
public static final Guild.Timeout SECONDS_3600
public static Guild.Timeout[] values()
for (Guild.Timeout c : Guild.Timeout.values()) System.out.println(c);
public static Guild.Timeout valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getSeconds()
Guild.Timeout
.public java.lang.String toString()
toString
in class java.lang.Enum<Guild.Timeout>
public static Guild.Timeout fromKey(int seconds)