UpdateEvent<Guild,Region>public class GuildUpdateRegionEvent extends GenericGuildUpdateEvent<Region>
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
IDENTIFIER |
| Constructor | Description |
|---|---|
GuildUpdateRegionEvent(JDA api,
long responseNumber,
Guild guild,
java.lang.String oldRegion) |
| Modifier and Type | Method | Description |
|---|---|---|
Region |
getNewRegion() |
|
java.lang.String |
getNewRegionRaw() |
The raw voice region name that was updated to in the
Guild. |
Region |
getOldRegion() |
|
java.lang.String |
getOldRegionRaw() |
The raw voice region name that was used prior to this update by the
Guild. |
getJDA, getResponseNumbergetGuildgetEntity, getNewValue, getOldValue, getPropertyIdentifier, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEntityTypepublic static final java.lang.String IDENTIFIER
public Region getOldRegion()
Region of the Guild.
UNKNOWN!
You can use getOldRegionRaw() to get the raw name that discord provides for this region!
Region constant from the raw namepublic java.lang.String getOldRegionRaw()
Guild.
getOldRegion() to a constant of the enum. If that returns UNKNOWN
this region is not currently registered in JDA.public Region getNewRegion()
Region of the Guild.
UNKNOWN!
You can use getNewRegionRaw() to get the raw name that discord provides for this region!
Region constant from the raw namepublic java.lang.String getNewRegionRaw()
Guild.
getNewRegion() to a constant of the enum. If that returns UNKNOWN
this region is not currently registered in JDA.