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
    • getNewBanner

      @Nullable public ImageProxy getNewBanner()
      Returns an ImageProxy for this guild's new banner.
      Returns:
      Possibly-null ImageProxy of this guild's new banner
      See Also:
    • 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
    • getOldBanner

      @Nullable public ImageProxy getOldBanner()
      Returns an ImageProxy for this guild's old banner.

      Note: the old banner may not always be downloadable as it might have been removed from Discord.

      Returns:
      Possibly-null ImageProxy of this guild's old banner
      See Also: