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
Constructors Constructor Description ApplicationCommandInteractionOptionValue(GatewayDiscordClient gateway, Long guildId, int type, String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
asBoolean()
Mono<Channel>
asChannel()
double
asDouble()
long
asLong()
Mono<Role>
asRole()
Snowflake
asSnowflake()
String
asString()
Mono<User>
asUser()
GatewayDiscordClient
getClient()
Returns theGatewayDiscordClient
that created this object.String
getRaw()
-
-
-
Constructor Detail
-
ApplicationCommandInteractionOptionValue
public ApplicationCommandInteractionOptionValue(GatewayDiscordClient gateway, @Nullable Long guildId, int type, String value)
-
-
Method Detail
-
getRaw
public String getRaw()
-
asString
public String asString()
-
asBoolean
public boolean asBoolean()
-
asLong
public long asLong()
-
asDouble
public double asDouble()
-
asSnowflake
public Snowflake asSnowflake()
-
getClient
public GatewayDiscordClient 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.
-
-