Class GuildUpdateIconEvent

  • All Implemented Interfaces:
    GenericEvent, UpdateEvent<Guild,​java.lang.String>

    public class GuildUpdateIconEvent
    extends GenericGuildUpdateEvent<java.lang.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

    • Constructor Detail

      • GuildUpdateIconEvent

        public GuildUpdateIconEvent​(@Nonnull
                                    JDA api,
                                    long responseNumber,
                                    @Nonnull
                                    Guild guild,
                                    @Nullable
                                    java.lang.String oldIconId)
    • Method Detail

      • getOldIconId

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

        @Nullable
        public java.lang.String getOldIconUrl()
        The url of the old icon
        Returns:
        The url of the old icon, or null
      • getNewIconId

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

        @Nullable
        public java.lang.String getNewIconUrl()
        The url of the new icon
        Returns:
        The url of the new icon, or null