Package discord4j.core.object
Class ScheduledEventEntityMetadata
java.lang.Object
discord4j.core.object.ScheduledEventEntityMetadata
- All Implemented Interfaces:
DiscordObject
-
Constructor Summary
ConstructorDescriptionScheduledEventEntityMetadata
(GatewayDiscordClient gateway, discord4j.discordjson.json.GuildScheduledEventEntityMetadataData data) Constructs aScheduledEventEntityMetadata
with an associatedGatewayDiscordClient
and Discord data. -
Method Summary
Modifier and TypeMethodDescriptionReturns theGatewayDiscordClient
that created this object.discord4j.discordjson.json.GuildScheduledEventEntityMetadataData
getData()
Gets the data of the entity metadata.Gets the location of the entity metadata, if present.toString()
-
Constructor Details
-
ScheduledEventEntityMetadata
public ScheduledEventEntityMetadata(GatewayDiscordClient gateway, discord4j.discordjson.json.GuildScheduledEventEntityMetadataData data) Constructs aScheduledEventEntityMetadata
with an associatedGatewayDiscordClient
and Discord data.- Parameters:
gateway
- TheGatewayDiscordClient
associated with this object, must be non-null.data
- The raw data as represented by Discord, must be non-null.
-
-
Method Details
-
getClient
Description copied from interface:DiscordObject
Returns theGatewayDiscordClient
that created this object. Methods in it are exclusively based on the entity cache orStore
in use. Refer to callinggetClient().rest()
to access aDiscordClient
that is capable of requesting entities directly from the REST API.- Specified by:
getClient
in interfaceDiscordObject
- 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
Gets the location of the entity metadata, if present.- Returns:
- The location of the entity metadata, or
Optional#empty()
if not present.
-
toString
-