Class GuildUpdateFeaturesEvent
- java.lang.Object
-
- net.dv8tion.jda.core.events.Event
-
- net.dv8tion.jda.core.events.guild.GenericGuildEvent
-
- net.dv8tion.jda.core.events.guild.update.GenericGuildUpdateEvent<java.util.Set<java.lang.String>>
-
- net.dv8tion.jda.core.events.guild.update.GuildUpdateFeaturesEvent
-
- All Implemented Interfaces:
UpdateEvent<Guild,java.util.Set<java.lang.String>>
public class GuildUpdateFeaturesEvent extends GenericGuildUpdateEvent<java.util.Set<java.lang.String>>
Indicates that the features of aGuild
changed.Can be used to detect when the features change and retrieve the old ones
Identifier:
features
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IDENTIFIER
-
Constructor Summary
Constructors Constructor Description GuildUpdateFeaturesEvent(JDA api, long responseNumber, Guild guild, java.util.Set<java.lang.String> oldFeatures)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getNewFeatures()
The new Set of features after theGuild
update.java.util.Set<java.lang.String>
getOldFeatures()
The old Set of features before theGuild
update.-
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
-
getOldFeatures
public java.util.Set<java.lang.String> getOldFeatures()
The old Set of features before theGuild
update.- Returns:
- Never-null, unmodifiable Set of the old features
-
getNewFeatures
public java.util.Set<java.lang.String> getNewFeatures()
The new Set of features after theGuild
update.- Returns:
- Never-null, unmodifiable Set of the new features
-
-