3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-22 09:15:03 +00:00

Use blueprint directly for commands for clarity

This commit is contained in:
Dragory 2020-07-05 15:03:51 +03:00
parent 7ff2a47526
commit 6cc7d91b4c
4 changed files with 34 additions and 40 deletions

View file

@ -4,17 +4,13 @@ import { embedPadding, formatNumber, memoize, MINUTES, trimLines } from "../../.
import { utilityCmd } from "../types";
import humanizeDuration from "humanize-duration";
export const ServerCmd = utilityCmd(
"server",
{},
export const ServerCmd = utilityCmd({
trigger: "server",
description: "Show information about the server",
usage: "!server",
permission: "can_server",
{
permission: "can_server",
description: "Show information about the server",
usage: "!server",
},
async ({ message }) => {
async run({ message }) {
const embed: EmbedOptions = {
fields: [],
color: parseInt("6b80cf", 16),
@ -122,5 +118,5 @@ export const ServerCmd = utilityCmd(
});
message.channel.createMessage({ embed });
}
);
},
});