Class GuildUpdateRegionEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.guild.GenericGuildEvent
-
- net.dv8tion.jda.api.events.guild.update.GenericGuildUpdateEvent<Region>
-
- net.dv8tion.jda.api.events.guild.update.GuildUpdateRegionEvent
-
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<Guild,Region>
@Deprecated @ForRemoval(deadline="5.0.0") @ReplaceWith("VoiceChannelUpdateRegionEvent") @DeprecatedSince("4.3.0") public class GuildUpdateRegionEvent extends GenericGuildUpdateEvent<Region>
Deprecated.This event is no longer supported by discord
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IDENTIFIER
Deprecated.
-
Constructor Summary
Constructors Constructor Description GuildUpdateRegionEvent(JDA api, long responseNumber, Guild guild, java.lang.String oldRegion)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Region
getNewRegion()
Deprecated.java.lang.String
getNewRegionRaw()
Deprecated.The raw voice region name that was updated to in theGuild
.Region
getNewValue()
Deprecated.The new valueRegion
getOldRegion()
Deprecated.java.lang.String
getOldRegionRaw()
Deprecated.The raw voice region name that was used prior to this update by theGuild
.Region
getOldValue()
Deprecated.The old value-
Methods inherited from class net.dv8tion.jda.api.events.guild.update.GenericGuildUpdateEvent
getEntity, getPropertyIdentifier, toString
-
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
-
Methods inherited from class net.dv8tion.jda.api.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.api.events.GenericEvent
getJDA, getResponseNumber
-
Methods inherited from interface net.dv8tion.jda.api.events.UpdateEvent
getEntityType
-
-
-
-
Field Detail
-
IDENTIFIER
public static final java.lang.String IDENTIFIER
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
getOldRegion
@Nonnull public Region getOldRegion()
Deprecated.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
@Nonnull public java.lang.String getOldRegionRaw()
Deprecated.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
@Nonnull public Region getNewRegion()
Deprecated.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
@Nonnull public java.lang.String getNewRegionRaw()
Deprecated.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
-
getOldValue
@Nonnull public Region getOldValue()
Deprecated.Description copied from interface:UpdateEvent
The old value- Specified by:
getOldValue
in interfaceUpdateEvent<Guild,Region>
- Overrides:
getOldValue
in classGenericGuildUpdateEvent<Region>
- Returns:
- The old value
-
getNewValue
@Nonnull public Region getNewValue()
Deprecated.Description copied from interface:UpdateEvent
The new value- Specified by:
getNewValue
in interfaceUpdateEvent<Guild,Region>
- Overrides:
getNewValue
in classGenericGuildUpdateEvent<Region>
- Returns:
- The new value
-
-