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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGuildUpdateSplashEvent(JDA api, long responseNumber, Guild guild, String oldSplashId) -
Method Summary
Modifier and TypeMethodDescriptionReturns anImageProxyfor this guild's new splash image.getNewSplash(ImageFormat format) Returns anImageProxyfor this guild's new splash image.The new splash idThe url of the new splashgetNewSplashUrl(ImageFormat format) The url of the new splashReturns anImageProxyfor this guild's old splash image.getOldSplash(ImageFormat format) Returns anImageProxyfor this guild's old splash image.The old splash idThe url of the old splashgetOldSplashUrl(ImageFormat format) The url of the old splashMethods inherited from class GenericGuildUpdateEvent
getEntity, getNewValue, getOldValue, getPropertyIdentifierMethods inherited from class GenericGuildEvent
getGuildMethods inherited from class Event
getJDA, getRawData, getResponseNumber, toStringMethods inherited from interface GenericEvent
getJDA, getRawData, getResponseNumberMethods inherited from interface UpdateEvent
getEntityType
-
Field Details
-
IDENTIFIER
- See Also:
-
-
Constructor Details
-
GuildUpdateSplashEvent
-
-
Method Details
-
getOldSplashId
-
getOldSplashUrl
The url of the old splash- Returns:
- The url of the old splash, or null
-
getOldSplashUrl
The url of the old splash- Parameters:
format- The format in which the image should be- Returns:
- The url of the old splash, or null
- Throws:
IllegalArgumentException- If the format isnull- See Also:
-
getOldSplash
Returns anImageProxyfor 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
ImageProxyof this guild's old splash image - See Also:
-
getOldSplash
Returns anImageProxyfor this guild's old splash image.Note: the old splash may not always be downloadable as it might have been removed from Discord.
- Parameters:
format- The format in which the image should be- Returns:
- Possibly-null
ImageProxyof this guild's old splash image - Throws:
IllegalArgumentException- If the format isnull- See Also:
-
getNewSplashId
-
getNewSplashUrl
The url of the new splash- Returns:
- The url of the new splash, or null
-
getNewSplashUrl
The url of the new splash- Parameters:
format- The format in which the image should be- Returns:
- The url of the new splash, or null
- Throws:
IllegalArgumentException- If the format isnull- See Also:
-
getNewSplash
Returns anImageProxyfor this guild's new splash image.- Returns:
- Possibly-null
ImageProxyof this guild's new splash image - See Also:
-
getNewSplash
Returns anImageProxyfor this guild's new splash image.- Parameters:
format- The format in which the image should be- Returns:
- Possibly-null
ImageProxyof this guild's new splash image - Throws:
IllegalArgumentException- If the format isnull- See Also:
-