Class GuildUpdateSystemChannelEvent

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

public class GuildUpdateSystemChannelEvent extends GenericGuildUpdateEvent<TextChannel>
Indicates that the system channel of a Guild changed.
This is used for welcome messages

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

Identifier: system_channel

  • Field Details

  • Constructor Details

  • Method Details

    • getOldSystemChannel

      @Nullable public TextChannel getOldSystemChannel()
      The previous system channel.
      Returns:
      The previous system channel
    • getNewSystemChannel

      @Nullable public TextChannel getNewSystemChannel()
      The new system channel.
      Returns:
      The new system channel