Search in sources :

Example 11 with CommandDataImpl

use of net.dv8tion.jda.internal.interactions.CommandDataImpl in project JDA by DV8FromTheWorld.

the class CommandEditActionImpl method clearOptions.

@Nonnull
@Override
public CommandEditAction clearOptions() {
    data = new CommandDataImpl(data.getName(), data.getDescription());
    mask &= ~OPTIONS_SET;
    return this;
}
Also used : CommandDataImpl(net.dv8tion.jda.internal.interactions.CommandDataImpl) Nonnull(javax.annotation.Nonnull)

Aggregations

CommandDataImpl (net.dv8tion.jda.internal.interactions.CommandDataImpl)11 SubcommandData (net.dv8tion.jda.api.interactions.commands.build.SubcommandData)5 Test (org.junit.jupiter.api.Test)5 Nonnull (javax.annotation.Nonnull)4 DataArray (net.dv8tion.jda.api.utils.data.DataArray)4 DataObject (net.dv8tion.jda.api.utils.data.DataObject)4 Command (net.dv8tion.jda.api.interactions.commands.Command)2 SubcommandGroupData (net.dv8tion.jda.api.interactions.commands.build.SubcommandGroupData)2 ClassPath (com.google.common.reflect.ClassPath)1 IOException (java.io.IOException)1 HashMap (java.util.HashMap)1 lombok.val (lombok.val)1 lombok.var (lombok.var)1 OptionType (net.dv8tion.jda.api.interactions.commands.OptionType)1 CommandData (net.dv8tion.jda.api.interactions.commands.build.CommandData)1