private void sendCommandHelp(Input input, Output output) {
SecureRandom r = new SecureRandom();
Command command = CommandUtils.getCommand(input.getArgument(0));
Message commandHelpEmbed = createEmbed(command.getSettings().getEmbedColor(),
"Help: " + command.getSettings().getName(),
"**Category:** `" + command.getSettings().getCategory() + "`\n**Usage:** `" + command
.getSettings()
.getHelp() + "`\n**Description:** `" + command
.getSettings().getDescription() + "`");
if (input.isFromType(ChannelType.TEXT)) {
output.sendMessage("Sent you a DM. " + emojis[r.nextInt(emojis.length)]);
output.sendPrivateMessage(commandHelpEmbed);
} else {
output.sendMessage(commandHelpEmbed);
}
}
Help.java 文件源码
java
阅读 50
收藏 0
点赞 0
评论 0
项目:Hobbes-v1
作者:
评论列表
文章目录