Class ApplicationCommandInteractionOptionValue

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

@Experimental public class ApplicationCommandInteractionOptionValue extends Object implements DiscordObject
  • Constructor Details

    • ApplicationCommandInteractionOptionValue

      public ApplicationCommandInteractionOptionValue(GatewayDiscordClient gateway, @Nullable Long guildId, int type, String value, @Nullable discord4j.discordjson.json.ApplicationCommandInteractionResolvedData resolved)
  • Method Details

    • getRaw

      public String getRaw()
    • asString

      public String asString()
    • asBoolean

      public boolean asBoolean()
    • asLong

      public long asLong()
    • asDouble

      public double asDouble()
    • asSnowflake

      public Snowflake asSnowflake()
    • asUser

      public Mono<User> asUser()
    • asRole

      public Mono<Role> asRole()
    • asChannel

      public Mono<Channel> asChannel()
    • asAttachment

      public Attachment asAttachment()
    • 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.