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 GenericChannelUpdateEvent
getEntity, getNewValue, getOldValue, getPropertyIdentifierMethods inherited from class GenericChannelEvent
getChannel, getChannelType, getGuild, isFromGuild, isFromTypeMethods inherited from class Event
getJDA, getRawData, getResponseNumber, toStringMethods inherited from interface GenericEvent
getJDA, getRawData, getResponseNumberMethods inherited from interface UpdateEvent
getEntityType
-
Field Details
-
FIELD
-
IDENTIFIER
-
-
Constructor Details
-
ChannelUpdateTypeEvent
public ChannelUpdateTypeEvent(@Nonnull JDA api, long responseNumber, Channel channel, ChannelType oldValue, ChannelType newValue)
-