Class GuildUpdateRulesChannelEvent

All Implemented Interfaces:
GenericEvent, UpdateEvent<Guild, TextChannel>

public class GuildUpdateRulesChannelEvent extends GenericGuildUpdateEvent<TextChannel>
Indicates that the rules channel of a Guild changed.

Can be used to detect when a guild rule channel changes and retrieve the old one

Identifier: rules_channel

  • Field Details

  • Constructor Details

    • GuildUpdateRulesChannelEvent

      public GuildUpdateRulesChannelEvent(@Nonnull JDA api, long responseNumber, @Nonnull Guild guild, @Nullable TextChannel oldRulesChannel)
  • Method Details

    • getOldRulesChannel

      @Nullable public TextChannel getOldRulesChannel()
      The previous rules channel.
      Returns:
      The previous rules channel
    • getNewRulesChannel

      @Nullable public TextChannel getNewRulesChannel()
      The new rules channel.
      Returns:
      The new rules channel