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<java.lang.String>
-
- net.dv8tion.jda.api.events.guild.update.GuildUpdateBannerEvent
-
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<Guild,java.lang.String>
public class GuildUpdateBannerEvent extends GenericGuildUpdateEvent<java.lang.String>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IDENTIFIER
-
Constructor Summary
Constructors Constructor Description GuildUpdateBannerEvent(JDA api, long responseNumber, Guild guild, java.lang.String previous)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getNewBannerId()
The new banner idjava.lang.String
getNewBannerIdUrl()
Deprecated.This will be replaced bygetNewBannerUrl()
java.lang.String
getNewBannerUrl()
The new banner urljava.lang.String
getOldBannerId()
The old banner idjava.lang.String
getOldBannerUrl()
The old banner url-
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
-
getNewBannerId
@Nullable public java.lang.String getNewBannerId()
The new banner id- Returns:
- The new banner id, or null if the banner was removed
-
getNewBannerUrl
@Nullable public java.lang.String getNewBannerUrl()
The new banner url- Returns:
- The new banner url, or null if the banner was removed
-
getNewBannerIdUrl
@Nullable @Deprecated @ForRemoval(deadline="5.0.0") @DeprecatedSince("4.2.0") @ReplaceWith("getNewBannerUrl()") public java.lang.String getNewBannerIdUrl()
Deprecated.This will be replaced bygetNewBannerUrl()
The new banner url- Returns:
- The new banner url, or null if the banner was removed
-
getOldBannerId
@Nullable public java.lang.String getOldBannerId()
The old banner id- Returns:
- The old banner id, or null if the banner didn't exist
-
getOldBannerUrl
@Nullable public java.lang.String getOldBannerUrl()
The old banner url- Returns:
- The old banner url, or null if the banner didn't exist
-
-