Class GuildUpdateNameEvent
- 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.GuildUpdateNameEvent
 
 
 
 
- 
- All Implemented Interfaces:
- GenericEvent,- UpdateEvent<Guild,java.lang.String>
 
 public class GuildUpdateNameEvent extends GenericGuildUpdateEvent<java.lang.String> Indicates that the name of aGuildchanged.Can be used to detect when a guild name changes and retrieve the old one Identifier: name
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringIDENTIFIER
 - 
Constructor SummaryConstructors Constructor Description GuildUpdateNameEvent(JDA api, long responseNumber, Guild guild, java.lang.String oldName)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetNewName()The new namejava.lang.StringgetNewValue()The new valuejava.lang.StringgetOldName()The old namejava.lang.StringgetOldValue()The old value- 
Methods inherited from class net.dv8tion.jda.api.events.guild.update.GenericGuildUpdateEventgetEntity, getPropertyIdentifier, toString
 - 
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEventgetGuild
 - 
Methods inherited from class net.dv8tion.jda.api.events.EventgetJDA, getResponseNumber
 - 
Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface net.dv8tion.jda.api.events.GenericEventgetJDA, getResponseNumber
 - 
Methods inherited from interface net.dv8tion.jda.api.events.UpdateEventgetEntityType
 
- 
 
- 
- 
- 
Field Detail- 
IDENTIFIERpublic static final java.lang.String IDENTIFIER - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getOldName@Nonnull public java.lang.String getOldName() The old name- Returns:
- The old name
 
 - 
getNewName@Nonnull public java.lang.String getNewName() The new name- Returns:
- The new name
 
 - 
getOldValue@Nonnull public java.lang.String getOldValue() Description copied from interface:UpdateEventThe old value- Specified by:
- getOldValuein interface- UpdateEvent<Guild,java.lang.String>
- Overrides:
- getOldValuein class- GenericGuildUpdateEvent<java.lang.String>
- Returns:
- The old value
 
 - 
getNewValue@Nonnull public java.lang.String getNewValue() Description copied from interface:UpdateEventThe new value- Specified by:
- getNewValuein interface- UpdateEvent<Guild,java.lang.String>
- Overrides:
- getNewValuein class- GenericGuildUpdateEvent<java.lang.String>
- Returns:
- The new value
 
 
- 
 
-