Class GuildUpdateBannerEvent

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

public class GuildUpdateBannerEvent extends GenericGuildUpdateEvent<String>
Indicates that the banner of a Guild changed.

Can be used to detect when the banner changes and retrieve the old one

Identifier: banner

  • Field Details

  • Constructor Details

  • Method Details

    • getNewBannerId

      @Nullable public String getNewBannerId()
      The new banner id
      Returns:
      The new banner id, or null if the banner was removed
    • getNewBannerUrl

      @Nullable public String getNewBannerUrl()
      The new banner url
      Returns:
      The new banner url, or null if the banner was removed
    • getOldBannerId

      @Nullable public String getOldBannerId()
      The old banner id
      Returns:
      The old banner id, or null if the banner didn't exist
    • getOldBannerUrl

      @Nullable public String getOldBannerUrl()
      The old banner url
      Returns:
      The old banner url, or null if the banner didn't exist