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<String>
net.dv8tion.jda.api.events.guild.update.GuildUpdateVanityCodeEvent
- All Implemented Interfaces:
GenericEvent, UpdateEvent<Guild,String>
Indicates that the
vanity url of a Guild changed.
Can be used to detect when the vanity url changes and retrieve the old one
Identifier: vanity_code
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGuildUpdateVanityCodeEvent(JDA api, long responseNumber, Guild guild, String previous) -
Method Summary
Modifier and TypeMethodDescriptionThe new vanity codeThe new vanity urlThe old vanity codeThe old vanity urlMethods 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
-
GuildUpdateVanityCodeEvent
-
-
Method Details
-
getOldVanityCode
-
getOldVanityUrl
-
getNewVanityCode
-
getNewVanityUrl
-