Class GuildUpdateSplashEvent
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.GuildUpdateSplashEvent
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<Guild,
String>
Indicates that the splash of a
Guild
changed.
Can be used to detect when a guild splash changes and retrieve the old one
Identifier: splash
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGuildUpdateSplashEvent
(JDA api, long responseNumber, Guild guild, String oldSplashId) -
Method Summary
Modifier and TypeMethodDescriptionReturns anImageProxy
for this guild's new splash image.The new splash idThe url of the new splashReturns anImageProxy
for this guild's old splash image.The old splash idThe url of the old splashMethods inherited from class net.dv8tion.jda.api.events.guild.update.GenericGuildUpdateEvent
getEntity, getNewValue, getOldValue, getPropertyIdentifier
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
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, getRawData, getResponseNumber
Methods inherited from interface net.dv8tion.jda.api.events.UpdateEvent
getEntityType
-
Field Details
-
IDENTIFIER
- See Also:
-
-
Constructor Details
-
GuildUpdateSplashEvent
-
-
Method Details
-
getOldSplashId
The old splash id- Returns:
- The old splash id, or null
-
getOldSplashUrl
The url of the old splash- Returns:
- The url of the old splash, or null
-
getOldSplash
Returns anImageProxy
for this guild's old splash image.Note: the old splash may not always be downloadable as it might have been removed from Discord.
- Returns:
- Possibly-null
ImageProxy
of this guild's old splash image - See Also:
-
getNewSplashId
The new splash id- Returns:
- The new splash id, or null
-
getNewSplashUrl
The url of the new splash- Returns:
- The url of the new splash, or null
-
getNewSplash
Returns anImageProxy
for this guild's new splash image.- Returns:
- Possibly-null
ImageProxy
of this guild's new splash image - See Also:
-