Class TextChannelUpdateNewsEvent
- 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<java.lang.Boolean>
-
- net.dv8tion.jda.api.events.channel.text.update.TextChannelUpdateNewsEvent
-
- All Implemented Interfaces:
GenericEvent,UpdateEvent<TextChannel,java.lang.Boolean>
public class TextChannelUpdateNewsEvent extends GenericTextChannelUpdateEvent<java.lang.Boolean>
Indicates that aTextChannel's has been converted into a news channel or reverted into a normal channel.Can be used to detect when a TextChannel becomes a news channel.
Identifier:
news- Since:
- 4.2.1
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringIDENTIFIER
-
Constructor Summary
Constructors Constructor Description TextChannelUpdateNewsEvent(JDA api, long responseNumber, TextChannel channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.BooleangetNewValue()The new valuejava.lang.BooleangetOldValue()The old value-
Methods inherited from class net.dv8tion.jda.api.events.channel.text.update.GenericTextChannelUpdateEvent
getEntity, 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
-
TextChannelUpdateNewsEvent
public TextChannelUpdateNewsEvent(@Nonnull JDA api, long responseNumber, @Nonnull TextChannel channel)
-
-
Method Detail
-
getOldValue
@Nonnull public java.lang.Boolean getOldValue()
Description copied from interface:UpdateEventThe old value- Specified by:
getOldValuein interfaceUpdateEvent<TextChannel,java.lang.Boolean>- Overrides:
getOldValuein classGenericTextChannelUpdateEvent<java.lang.Boolean>- Returns:
- The old value
-
getNewValue
@Nonnull public java.lang.Boolean getNewValue()
Description copied from interface:UpdateEventThe new value- Specified by:
getNewValuein interfaceUpdateEvent<TextChannel,java.lang.Boolean>- Overrides:
getNewValuein classGenericTextChannelUpdateEvent<java.lang.Boolean>- Returns:
- The new value
-
-