Class GuildUpdateVanityCodeEvent

All Implemented Interfaces:
GenericEvent, UpdateEvent<Guild,String>

public class GuildUpdateVanityCodeEvent extends GenericGuildUpdateEvent<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 Details

  • Constructor Details

  • Method Details

    • getOldVanityCode

      @Nullable public String getOldVanityCode()
      The old vanity code
      Returns:
      The old vanity code
    • getOldVanityUrl

      @Nullable public String getOldVanityUrl()
      The old vanity url
      Returns:
      The old vanity url
    • getNewVanityCode

      @Nullable public String getNewVanityCode()
      The new vanity code
      Returns:
      The new vanity code
    • getNewVanityUrl

      @Nullable public String getNewVanityUrl()
      The new vanity url
      Returns:
      The new vanity url