make the help command better

This commit is contained in:
Lee
2024-06-27 16:24:08 +01:00
parent a7c3e2d745
commit 50b921c66d
7 changed files with 41 additions and 6 deletions

View File

@ -1,6 +1,7 @@
package cc.fascinated.bat.command;
import lombok.Getter;
import lombok.Setter;
import net.dv8tion.jda.api.Permission;
import net.dv8tion.jda.api.interactions.commands.OptionType;
import net.dv8tion.jda.api.interactions.commands.build.SubcommandData;
@ -10,7 +11,7 @@ import java.util.List;
/**
* @author Fascinated (fascinated7)
*/
@Getter
@Getter @Setter
public class BatSubCommand implements BatCommandExecutor {
/**
* The command data for the slash command
@ -22,6 +23,11 @@ public class BatSubCommand implements BatCommandExecutor {
*/
private final List<Permission> requiredPermissions;
/**
* The commands snowflake from Discord
*/
private long commandSnowflake;
public BatSubCommand(String name, String description, Permission... permissions) {
this.commandData = new SubcommandData(name, description);
this.requiredPermissions = List.of(permissions);