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<java.lang.String>
-
- net.dv8tion.jda.api.events.guild.update.GuildUpdateDescriptionEvent
-
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<Guild,java.lang.String>
public class GuildUpdateDescriptionEvent extends GenericGuildUpdateEvent<java.lang.String>
Indicates that thedescription
of aGuild
changed.Can be used to detect when the description changes and retrieve the old one
Identifier:
description
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IDENTIFIER
-
Constructor Summary
Constructors Constructor Description GuildUpdateDescriptionEvent(JDA api, long responseNumber, Guild guild, java.lang.String previous)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getNewDescription()
The new description for this guildjava.lang.String
getOldDescription()
The old description for this guild-
Methods inherited from class net.dv8tion.jda.api.events.guild.update.GenericGuildUpdateEvent
getEntity, getNewValue, getOldValue, 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
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOldDescription
@Nullable public java.lang.String getOldDescription()
The old description for this guild- Returns:
- The old description for this guild, or null if none was set
-
getNewDescription
@Nullable public java.lang.String getNewDescription()
The new description for this guild- Returns:
- The new description, or null if it was removed
-
-