Class ScheduledEventEntityMetadata

java.lang.Object
discord4j.core.object.ScheduledEventEntityMetadata
All Implemented Interfaces:
DiscordObject

public class ScheduledEventEntityMetadata extends Object implements DiscordObject
  • Constructor Details

    • ScheduledEventEntityMetadata

      public ScheduledEventEntityMetadata(GatewayDiscordClient gateway, discord4j.discordjson.json.GuildScheduledEventEntityMetadataData data)
      Constructs a ScheduledEventEntityMetadata with an associated GatewayDiscordClient and Discord data.
      Parameters:
      gateway - The GatewayDiscordClient associated with this object, must be non-null.
      data - The raw data as represented by Discord, must be non-null.
  • Method Details

    • getClient

      public GatewayDiscordClient getClient()
      Description copied from interface: DiscordObject
      Returns the GatewayDiscordClient that created this object. Methods in it are exclusively based on the entity cache or Store in use. Refer to calling getClient().rest() to access a DiscordClient that is capable of requesting entities directly from the REST API.
      Specified by:
      getClient in interface DiscordObject
      Returns:
      The GatewayDiscordClient associated to this object.
    • getData

      public discord4j.discordjson.json.GuildScheduledEventEntityMetadataData getData()
      Gets the data of the entity metadata.
      Returns:
      The data of the entity metadata.
    • getLocation

      public Optional<String> getLocation()
      Gets the location of the entity metadata, if present.
      Returns:
      The location of the entity metadata, or Optional#empty() if not present.
    • toString

      public String toString()
      Overrides:
      toString in class Object