Class GuildUpdateIconEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.guild.GenericGuildEvent
-
- net.dv8tion.jda.api.events.guild.update.GenericGuildUpdateEvent<java.lang.String>
-
- net.dv8tion.jda.api.events.guild.update.GuildUpdateIconEvent
-
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<Guild,java.lang.String>
public class GuildUpdateIconEvent extends GenericGuildUpdateEvent<java.lang.String>
Indicates that the Icon of aGuild
changed.Can be used to detect when a guild icon changes and retrieve the old one
Identifier:
icon
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IDENTIFIER
-
Constructor Summary
Constructors Constructor Description GuildUpdateIconEvent(JDA api, long responseNumber, Guild guild, java.lang.String oldIconId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getNewIconId()
The old icon idjava.lang.String
getNewIconUrl()
The url of the new iconjava.lang.String
getOldIconId()
The old icon idjava.lang.String
getOldIconUrl()
The url of the old icon-
Methods inherited from class net.dv8tion.jda.api.events.guild.update.GenericGuildUpdateEvent
getEntity, getNewValue, getOldValue, getPropertyIdentifier, toString
-
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.dv8tion.jda.api.events.GenericEvent
getJDA, getResponseNumber
-
Methods inherited from interface net.dv8tion.jda.api.events.UpdateEvent
getEntityType
-
-
-
-
Field Detail
-
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
-
-
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
-
-