java.io.Serializable
, java.lang.Comparable<WidgetUtil.BannerType>
public static enum WidgetUtil.BannerType extends java.lang.Enum<WidgetUtil.BannerType>
Shield - tiny, only contains Discord logo and online count
Banner1 - medium, contains server name, icon, and online count, and a "Powered by Discord" bar on the bottom
Banner2 - small, contains server name, icon, and online count, and a Discord logo on the side
Banner3 - medium, contains server name, icon, and online count, and a Discord logo with a "Chat Now" bar on the bottom
Banner4 - large, contains a very big Discord logo, server name, icon, and online count, and a big "Join My Server" button
Enum Constant | Description |
---|---|
BANNER1 |
|
BANNER2 |
|
BANNER3 |
|
BANNER4 |
|
SHIELD |
Modifier and Type | Method | Description |
---|---|---|
static WidgetUtil.BannerType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static WidgetUtil.BannerType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WidgetUtil.BannerType SHIELD
public static final WidgetUtil.BannerType BANNER1
public static final WidgetUtil.BannerType BANNER2
public static final WidgetUtil.BannerType BANNER3
public static final WidgetUtil.BannerType BANNER4
public static WidgetUtil.BannerType[] values()
for (WidgetUtil.BannerType c : WidgetUtil.BannerType.values()) System.out.println(c);
public static WidgetUtil.BannerType 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 null