Class GuildUpdateRegionEvent
- java.lang.Object
-
- net.dv8tion.jda.core.events.Event
-
- net.dv8tion.jda.core.events.guild.GenericGuildEvent
-
- net.dv8tion.jda.core.events.guild.update.GenericGuildUpdateEvent<Region>
-
- net.dv8tion.jda.core.events.guild.update.GuildUpdateRegionEvent
-
- All Implemented Interfaces:
UpdateEvent<Guild,Region>
public class GuildUpdateRegionEvent extends GenericGuildUpdateEvent<Region>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IDENTIFIER
-
Constructor Summary
Constructors Constructor Description GuildUpdateRegionEvent(JDA api, long responseNumber, Guild guild, java.lang.String oldRegion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Region
getNewRegion()
java.lang.String
getNewRegionRaw()
The raw voice region name that was updated to in theGuild
.Region
getOldRegion()
java.lang.String
getOldRegionRaw()
The raw voice region name that was used prior to this update by theGuild
.-
Methods inherited from class net.dv8tion.jda.core.events.guild.update.GenericGuildUpdateEvent
getEntity, getNewValue, getOldValue, getPropertyIdentifier, toString
-
Methods inherited from class net.dv8tion.jda.core.events.guild.GenericGuildEvent
getGuild
-
Methods inherited from class net.dv8tion.jda.core.events.Event
getJDA, getResponseNumber
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.dv8tion.jda.core.events.UpdateEvent
getEntityType
-
-
-
-
Field Detail
-
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOldRegion
public Region getOldRegion()
The oldRegion
of theGuild
.
If this region cannot be resolved to an enum constant this will returnUNKNOWN
!You can use
getOldRegionRaw()
to get the raw name that discord provides for this region!- Returns:
- Resolved
Region
constant from the raw name
-
getOldRegionRaw
public java.lang.String getOldRegionRaw()
The raw voice region name that was used prior to this update by theGuild
.
This can be resolved usinggetOldRegion()
to a constant of the enum. If that returnsUNKNOWN
this region is not currently registered in JDA.- Returns:
- Raw name of the old voice region
-
getNewRegion
public Region getNewRegion()
The newRegion
of theGuild
.
If this region cannot be resolved to an enum constant this will returnUNKNOWN
!You can use
getNewRegionRaw()
to get the raw name that discord provides for this region!- Returns:
- Resolved
Region
constant from the raw name
-
getNewRegionRaw
public java.lang.String getNewRegionRaw()
The raw voice region name that was updated to in theGuild
.
This can be resolved usinggetNewRegion()
to a constant of the enum. If that returnsUNKNOWN
this region is not currently registered in JDA.- Returns:
- Raw name of the updated voice region
-
-