All Downloads are FREE. Search and download functionalities are using the official Maven repository.

discord4j.discordjson.json.ApplicationCommandInteractionOptionData Maven / Gradle / Ivy

There is a newer version: 1.7.9
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy