Class GuildUpdateSystemChannelEvent

  • All Implemented Interfaces:
    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

    • Constructor Detail

      • GuildUpdateSystemChannelEvent

        public GuildUpdateSystemChannelEvent​(JDA api,
                                             long responseNumber,
                                             Guild guild,
                                             TextChannel oldSystemChannel)
    • Method Detail

      • getOldSystemChannel

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

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