Class GuildUpdateSystemChannelFlagsEvent

All Implemented Interfaces:
GenericEvent, UpdateEvent<Guild, Set<SystemChannelFlag>>

public class GuildUpdateSystemChannelFlagsEvent extends GenericGuildUpdateEvent<Set<SystemChannelFlag>>
Indicates that Guild.getSystemChannelFlags() have been updated.

This event can be used to detect changes in system channel flags and retrieve the old ones.

Identifier: system_channel_flags

  • Field Details

  • Constructor Details

  • Method Details

    • getOldFlags

      @Nonnull public Set<SystemChannelFlag> getOldFlags()
      Returns the old system channel flags for this guild.
      Returns:
      An unmodifiable set of old system channel flags for this guild.
    • getNewFlags

      @Nonnull public Set<SystemChannelFlag> getNewFlags()
      Returns the new system channel flags for this guild.
      Returns:
      An unmodifiable set of new system channel flags for this guild.