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.TEXT
is converted to typeChannelType.NEWS
- of type
ChannelType.NEWS
is converted to typeChannelType.TEXT
- of type
ChannelType.FORUM
is converted to typeChannelType.MEDIA
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionChannelUpdateTypeEvent
(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, getPropertyIdentifier
Methods inherited from class net.dv8tion.jda.api.events.channel.GenericChannelEvent
getChannel, getChannelType, getGuild, isFromGuild, isFromType
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
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, getRawData, getResponseNumber
Methods 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)
-