public enum DiscordBuild extends java.lang.Enum<DiscordBuild>
Enum Constant and Description |
---|
ANY
'Wildcard' build constant used in
{@link info.u_team.u_team_core.repack.com.jagrosh.discordipc.IPCClient#connect(DiscordBuild...)
|
CANARY
Constant for the current Discord Canary release.
|
PTB
Constant for the current Discord Public Test Build or PTB release.
|
STABLE
Constant for the current stable Discord release.
|
Modifier and Type | Method and Description |
---|---|
static DiscordBuild |
from(java.lang.String endpoint)
Gets a
DiscordBuild matching the specified endpoint. |
static DiscordBuild |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DiscordBuild[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiscordBuild CANARY
public static final DiscordBuild PTB
public static final DiscordBuild STABLE
public static final DiscordBuild ANY
IPCClient#connect(DiscordBuild...)
to signify that the build to target is not important, and that the first valid
build will be used.
Other than this exact function, there is no use for this value.
public static DiscordBuild[] values()
for (DiscordBuild c : DiscordBuild.values()) System.out.println(c);
public static DiscordBuild 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 static DiscordBuild from(java.lang.String endpoint)
DiscordBuild
matching the specified endpoint.
This is only internally implemented.
endpoint
- The endpoint to get from.ANY
if none match.