Use blueprint directly for commands for clarity

This commit is contained in:
Dragory 2020-07-05 15:03:51 +03:00
parent 05693455ec
commit 9963a4d5a4
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
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 });
}
);
},
});