Class GuildUpdateVanityCodeEvent
- 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.GuildUpdateVanityCodeEvent
-
- All Implemented Interfaces:
GenericEvent,UpdateEvent<Guild,java.lang.String>
public class GuildUpdateVanityCodeEvent extends GenericGuildUpdateEvent<java.lang.String>
Indicates that thevanity urlof aGuildchanged.Can be used to detect when the vanity url changes and retrieve the old one
Identifier:
vanity_code
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringIDENTIFIER
-
Constructor Summary
Constructors Constructor Description GuildUpdateVanityCodeEvent(JDA api, long responseNumber, Guild guild, java.lang.String previous)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetNewVanityCode()The new vanity codejava.lang.StringgetNewVanityUrl()The new vanity urljava.lang.StringgetOldVanityCode()The old vanity codejava.lang.StringgetOldVanityUrl()The old vanity 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
-
getOldVanityCode
@Nullable public java.lang.String getOldVanityCode()
The old vanity code- Returns:
- The old vanity code
-
getOldVanityUrl
@Nullable public java.lang.String getOldVanityUrl()
The old vanity url- Returns:
- The old vanity url
-
getNewVanityCode
@Nullable public java.lang.String getNewVanityCode()
The new vanity code- Returns:
- The new vanity code
-
getNewVanityUrl
@Nullable public java.lang.String getNewVanityUrl()
The new vanity url- Returns:
- The new vanity url
-
-