Uses of Class
com.dianxin.tori.api.commands.LegacyCommandBuilder
Packages that use LegacyCommandBuilder
Package
Description
-
Uses of LegacyCommandBuilder in com.dianxin.tori.api.commands
Methods in com.dianxin.tori.api.commands that return LegacyCommandBuilderModifier and TypeMethodDescriptionLegacyCommandBuilder.addRequiredPermissions(net.dv8tion.jda.api.Permission... permissions) Adds one or more Discord permissions that the user invoking the command must possess.LegacyCommandBuilder.addSelfPermissions(net.dv8tion.jda.api.Permission... permissions) Adds one or more Discord permissions that the bot itself must possess to handle the command.static LegacyCommandBuilderLegacyCommandBuilder.deferAndOnlyGuild()A convenience factory method to create a builder pre-configured to automatically defer the reply and restrict the command execution strictly to Discord guilds.static LegacyCommandBuilderLegacyCommandBuilder.guildAdminOnly()A convenience factory method to create a builder pre-configured to require thePermission.ADMINISTRATORpermission from the user.LegacyCommandBuilder.setDebug(boolean debug) Sets whether debug logging should be enabled for this command when it is executed.LegacyCommandBuilder.setDefer(boolean defer) Sets whether the command reply should be automatically deferred.LegacyCommandBuilder.setDirectMessageOnly(boolean directMessageOnly) Restricts the command to be executable only in Direct Messages (DMs).LegacyCommandBuilder.setGuildOnly(boolean guildOnly) Restricts the command to be executable only within Discord guilds (servers).LegacyCommandBuilder.setOwnerOnly(boolean ownerOnly) Restricts the command exclusively to the bot owner.LegacyCommandBuilder.setPrivateChannelOnly(boolean privateChannelOnly) Restricts the command to be executable only in private channels. -
Uses of LegacyCommandBuilder in com.dianxin.tori.api.commands.messagecontext
Constructors in com.dianxin.tori.api.commands.messagecontext with parameters of type LegacyCommandBuilderModifierConstructorDescriptionBaseMessageContextMenu(String title, net.dv8tion.jda.api.JDA jda, IBotMeta meta, LegacyCommandBuilder builder) Constructs a statically configured BaseMessageContextMenu using aLegacyCommandBuilder. -
Uses of LegacyCommandBuilder in com.dianxin.tori.api.commands.slash
Constructors in com.dianxin.tori.api.commands.slash with parameters of type LegacyCommandBuilderModifierConstructorDescriptionBaseCommand(net.dv8tion.jda.api.JDA jda, IBotMeta meta, LegacyCommandBuilder builder) Constructs a BaseCommand using theLegacyCommandBuilder. -
Uses of LegacyCommandBuilder in com.dianxin.tori.api.commands.text
Constructors in com.dianxin.tori.api.commands.text with parameters of type LegacyCommandBuilderModifierConstructorDescriptionBaseTextCommand(String title, List<String> aliases, net.dv8tion.jda.api.JDA jda, IBotMeta meta, LegacyCommandBuilder builder) -
Uses of LegacyCommandBuilder in com.dianxin.tori.api.commands.usercontext
Constructors in com.dianxin.tori.api.commands.usercontext with parameters of type LegacyCommandBuilderModifierConstructorDescriptionBaseUserContextMenu(String title, net.dv8tion.jda.api.JDA jda, IBotMeta meta, LegacyCommandBuilder builder) Constructs a statically configured BaseUserContextMenu using aLegacyCommandBuilder.