Class GuildUpdateIconEvent

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

public class GuildUpdateIconEvent extends GenericGuildUpdateEvent<String>
Indicates that the Icon of a Guild changed.

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

Identifier: icon

  • Field Details

  • Constructor Details

  • Method Details

    • getOldIconId

      @Nullable public String getOldIconId()
      The old icon id
      Returns:
      The old icon id, or null
    • getOldIconUrl

      @Nullable public String getOldIconUrl()
      The url of the old icon
      Returns:
      The url of the old icon, or null
    • getOldIcon

      @Nullable public ImageProxy getOldIcon()
      Returns an ImageProxy for this guild's old icon.

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

      Returns:
      Possibly-null ImageProxy of this guild's old icon
      See Also:
    • getNewIconId

      @Nullable public String getNewIconId()
      The old icon id
      Returns:
      The old icon id, or null
    • getNewIconUrl

      @Nullable public String getNewIconUrl()
      The url of the new icon
      Returns:
      The url of the new icon, or null
    • getNewIcon

      @Nullable public ImageProxy getNewIcon()
      Returns an ImageProxy for this guild's new icon.
      Returns:
      Possibly-null ImageProxy of this guild's new icon
      See Also: