Class VoiceChannelUpdateNameEvent
- java.lang.Object
- 
- net.dv8tion.jda.api.events.Event
- 
- net.dv8tion.jda.api.events.channel.voice.GenericVoiceChannelEvent
- 
- net.dv8tion.jda.api.events.channel.voice.update.GenericVoiceChannelUpdateEvent<java.lang.String>
- 
- net.dv8tion.jda.api.events.channel.voice.update.VoiceChannelUpdateNameEvent
 
 
 
 
- 
- All Implemented Interfaces:
- GenericEvent,- UpdateEvent<VoiceChannel,java.lang.String>
 
 public class VoiceChannelUpdateNameEvent extends GenericVoiceChannelUpdateEvent<java.lang.String> Indicates that aVoiceChannel's name changed.Can be used to get affected VoiceChannel, affected Guild and previous name. Identifier: name
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringIDENTIFIER
 - 
Constructor SummaryConstructors Constructor Description VoiceChannelUpdateNameEvent(JDA api, long responseNumber, VoiceChannel channel, 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.channel.voice.update.GenericVoiceChannelUpdateEventgetEntity, getPropertyIdentifier, toString
 - 
Methods inherited from class net.dv8tion.jda.api.events.channel.voice.GenericVoiceChannelEventgetChannel, getGuild
 - 
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
 
 
- 
 - 
Constructor Detail- 
VoiceChannelUpdateNameEventpublic VoiceChannelUpdateNameEvent(@Nonnull JDA api, long responseNumber, @Nonnull VoiceChannel channel, @Nonnull java.lang.String oldName)
 
- 
 - 
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<VoiceChannel,java.lang.String>
- Overrides:
- getOldValuein class- GenericVoiceChannelUpdateEvent<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<VoiceChannel,java.lang.String>
- Overrides:
- getNewValuein class- GenericVoiceChannelUpdateEvent<java.lang.String>
- Returns:
- The new value
 
 
- 
 
-