Class TextChannelUpdateParentEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.channel.text.GenericTextChannelEvent
-
- net.dv8tion.jda.api.events.channel.text.update.GenericTextChannelUpdateEvent<Category>
-
- net.dv8tion.jda.api.events.channel.text.update.TextChannelUpdateParentEvent
-
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<TextChannel,Category>
public class TextChannelUpdateParentEvent extends GenericTextChannelUpdateEvent<Category>
Indicates that aTextChannel
's parent changed.Can be used to detect that the parent of a TextChannel changes.
Identifier:
parent
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IDENTIFIER
-
Constructor Summary
Constructors Constructor Description TextChannelUpdateParentEvent(JDA api, long responseNumber, TextChannel channel, Category oldParent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Category
getNewParent()
The new parentCategory
Category
getOldParent()
The old parentCategory
-
Methods inherited from class net.dv8tion.jda.api.events.channel.text.update.GenericTextChannelUpdateEvent
getEntity, getNewValue, getOldValue, getPropertyIdentifier, toString
-
Methods inherited from class net.dv8tion.jda.api.events.channel.text.GenericTextChannelEvent
getChannel, 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
-
-
Constructor Detail
-
TextChannelUpdateParentEvent
public TextChannelUpdateParentEvent(@Nonnull JDA api, long responseNumber, @Nonnull TextChannel channel, @Nullable Category oldParent)
-
-