Package discord4j.core.object.command
Class ApplicationCommandInteractionOptionValue
java.lang.Object
discord4j.core.object.command.ApplicationCommandInteractionOptionValue
- All Implemented Interfaces:
DiscordObject
@Experimental
public class ApplicationCommandInteractionOptionValue
extends Object
implements DiscordObject
-
Constructor Summary
ConstructorDescriptionApplicationCommandInteractionOptionValue
(GatewayDiscordClient gateway, Long guildId, int type, String value, discord4j.discordjson.json.ApplicationCommandInteractionResolvedData resolved) -
Method Summary
-
Constructor Details
-
ApplicationCommandInteractionOptionValue
public ApplicationCommandInteractionOptionValue(GatewayDiscordClient gateway, @Nullable Long guildId, int type, String value, @Nullable discord4j.discordjson.json.ApplicationCommandInteractionResolvedData resolved)
-
-
Method Details
-
getRaw
-
asString
-
asBoolean
public boolean asBoolean() -
asLong
public long asLong() -
asDouble
public double asDouble() -
asSnowflake
-
asUser
-
asRole
-
asChannel
-
asAttachment
-
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.
-