Class GuildUpdateBannerEvent
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.GuildUpdateBannerEvent
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<Guild,
String>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGuildUpdateBannerEvent
(JDA api, long responseNumber, Guild guild, String previous) -
Method Summary
Modifier and TypeMethodDescriptionReturns anImageProxy
for this guild's new banner.The new banner idThe new banner urlReturns anImageProxy
for this guild's old banner.The old banner idThe old banner urlMethods 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
-
GuildUpdateBannerEvent
-
-
Method Details
-
getNewBannerId
The new banner id- Returns:
- The new banner id, or null if the banner was removed
-
getNewBannerUrl
The new banner url- Returns:
- The new banner url, or null if the banner was removed
-
getNewBanner
Returns anImageProxy
for this guild's new banner.- Returns:
- Possibly-null
ImageProxy
of this guild's new banner - See Also:
-
getOldBannerId
The old banner id- Returns:
- The old banner id, or null if the banner didn't exist
-
getOldBannerUrl
The old banner url- Returns:
- The old banner url, or null if the banner didn't exist
-
getOldBanner
Returns anImageProxy
for this guild's old banner.Note: the old banner may not always be downloadable as it might have been removed from Discord.
- Returns:
- Possibly-null
ImageProxy
of this guild's old banner - See Also:
-