Class GuildUpdateDescriptionEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.guild.GenericGuildEvent
net.dv8tion.jda.api.events.guild.update.GenericGuildUpdateEvent<String>
net.dv8tion.jda.api.events.guild.update.GuildUpdateDescriptionEvent
- All Implemented Interfaces:
GenericEvent,UpdateEvent<Guild,String>
Indicates that the
description of a Guild changed.
Can be used to detect when the description changes and retrieve the old one
Identifier: description
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGuildUpdateDescriptionEvent(JDA api, long responseNumber, Guild guild, String previous) -
Method Summary
Modifier and TypeMethodDescriptionThe new description for this guildThe old description for this guildMethods inherited from class net.dv8tion.jda.api.events.guild.update.GenericGuildUpdateEvent
getEntity, getNewValue, getOldValue, getPropertyIdentifierMethods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuildMethods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.dv8tion.jda.api.events.GenericEvent
getJDA, getRawData, getResponseNumberMethods inherited from interface net.dv8tion.jda.api.events.UpdateEvent
getEntityType
-
Field Details
-
IDENTIFIER
- See Also:
-
-
Constructor Details
-
GuildUpdateDescriptionEvent
-
-
Method Details
-
getOldDescription
The old description for this guild- Returns:
- The old description for this guild, or null if none was set
-
getNewDescription
The new description for this guild- Returns:
- The new description, or null if it was removed
-