discord4j.discordjson.json.ApplicationCommandInteractionOptionData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of discord-json Show documentation
Show all versions of discord-json Show documentation
Discord entity domain as immutable Jackson objects
package discord4j.discordjson.json;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import discord4j.discordjson.possible.Possible;
import org.immutables.value.Value;
import java.util.List;
@Value.Immutable
@JsonSerialize(as = ImmutableApplicationCommandInteractionOptionData.class)
@JsonDeserialize(as = ImmutableApplicationCommandInteractionOptionData.class)
public interface ApplicationCommandInteractionOptionData {
static ImmutableApplicationCommandInteractionOptionData.Builder builder() {
return ImmutableApplicationCommandInteractionOptionData.builder();
}
/**
* the name of the parameter
*/
String name();
/**
* the value of the pair
*/
Possible value();
/**
* the type of the parameter
*/
int type();
/**
* present if this option is a group or subcommand
*/
Possible> options();
/**
* Whether this option is the currently focused option for autocomplete
*/
Possible focused();
}