Class ChannelUpdateTypeEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.channel.GenericChannelEvent
net.dv8tion.jda.api.events.channel.update.GenericChannelUpdateEvent<ChannelType>
net.dv8tion.jda.api.events.channel.update.ChannelUpdateTypeEvent
- All Implemented Interfaces:
GenericEvent,UpdateEvent<Channel,ChannelType>
Indicates that a
Channel's ChannelType was updated.
Can be used to retrieve the old ChannelType and the new one.
This event will most likely be fired when a Channel:
- of type
ChannelType.TEXTis converted to typeChannelType.NEWS - of type
ChannelType.NEWSis converted to typeChannelType.TEXT - of type
ChannelType.FORUMis converted to typeChannelType.MEDIA
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChannelUpdateTypeEvent(JDA api, long responseNumber, Channel channel, ChannelType oldValue, ChannelType newValue) -
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.channel.update.GenericChannelUpdateEvent
getEntity, getNewValue, getOldValue, getPropertyIdentifierMethods inherited from class net.dv8tion.jda.api.events.channel.GenericChannelEvent
getChannel, getChannelType, getGuild, isFromGuild, isFromTypeMethods 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
-
FIELD
-
IDENTIFIER
-
-
Constructor Details
-
ChannelUpdateTypeEvent
public ChannelUpdateTypeEvent(@Nonnull JDA api, long responseNumber, Channel channel, ChannelType oldValue, ChannelType newValue)
-