Class TextChannelUpdateNSFWEvent

  • All Implemented Interfaces:
    UpdateEvent<TextChannel,​java.lang.Boolean>

    public class TextChannelUpdateNSFWEvent
    extends GenericTextChannelUpdateEvent<java.lang.Boolean>
    Indicates that a TextChannel's NSFW status changed.

    Can be used to detect when a TextChannel NSFW status changes and get its previous value.

    Identifier: nsfw

    • Constructor Detail

      • TextChannelUpdateNSFWEvent

        public TextChannelUpdateNSFWEvent​(JDA api,
                                          long responseNumber,
                                          TextChannel channel,
                                          boolean oldNsfw)
    • Method Detail

      • getOldNSFW

        public boolean getOldNSFW()
        Whether the channel was marked NSFW before
        Returns:
        True, if the channel was marked NSFW before