Class GuildUpdateSafetyAlertsChannelEvent

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

public class GuildUpdateSafetyAlertsChannelEvent extends GenericGuildUpdateEvent<TextChannel>
Indicates that the safety alert channel of a Guild changed.

Can be used to detect when a guild safety alert changes and retrieve the old one

Identifier: safety_alerts_channel

  • Field Details

  • Constructor Details

  • Method Details

    • getOldSafetyAlertsChannel

      @Nullable public TextChannel getOldSafetyAlertsChannel()
      The previous safety alert channel.
      Returns:
      The previous safety alert channel
    • getNewSafetyAlertsChannel

      @Nullable public TextChannel getNewSafetyAlertsChannel()
      The new safety alert channel.
      Returns:
      The new safety alert channel