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 booleanasBoolean()Mono<Channel>asChannel()doubleasDouble()longasLong()Mono<Role>asRole()SnowflakeasSnowflake()StringasString()Mono<User>asUser()GatewayDiscordClientgetClient()Returns theGatewayDiscordClientthat created this object.StringgetRaw()
-
-
-
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:DiscordObjectReturns theGatewayDiscordClientthat created this object. Methods in it are exclusively based on the entity cache orStorein use. Refer to callinggetClient().rest()to access aDiscordClientthat is capable of requesting entities directly from the REST API.- Specified by:
getClientin interfaceDiscordObject- Returns:
- The
GatewayDiscordClientassociated to this object.
-
-