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<String>
net.dv8tion.jda.api.events.guild.update.GuildUpdateIconEvent
- All Implemented Interfaces:
- GenericEvent,- UpdateEvent<Guild,- 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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionGuildUpdateIconEvent(JDA api, long responseNumber, Guild guild, String oldIconId) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns anImageProxyfor this guild's new icon.The old icon idThe url of the new iconReturns anImageProxyfor this guild's old icon.The old icon idThe url of the old iconMethods inherited from class net.dv8tion.jda.api.events.guild.update.GenericGuildUpdateEventgetEntity, getNewValue, getOldValue, getPropertyIdentifierMethods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEventgetGuildMethods inherited from class net.dv8tion.jda.api.events.EventgetJDA, getRawData, getResponseNumber, toStringMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.dv8tion.jda.api.events.GenericEventgetJDA, getRawData, getResponseNumberMethods inherited from interface net.dv8tion.jda.api.events.UpdateEventgetEntityType
- 
Field Details- 
IDENTIFIER- See Also:
 
 
- 
- 
Constructor Details- 
GuildUpdateIconEvent
 
- 
- 
Method Details- 
getOldIconIdThe old icon id- Returns:
- The old icon id, or null
 
- 
getOldIconUrlThe url of the old icon- Returns:
- The url of the old icon, or null
 
- 
getOldIconReturns anImageProxyfor 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 ImageProxyof this guild's old icon
- See Also:
 
- 
getNewIconIdThe old icon id- Returns:
- The old icon id, or null
 
- 
getNewIconUrlThe url of the new icon- Returns:
- The url of the new icon, or null
 
- 
getNewIconReturns anImageProxyfor this guild's new icon.- Returns:
- Possibly-null ImageProxyof this guild's new icon
- See Also:
 
 
-