mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-19 15:30:00 +00:00
21 lines
662 B
TypeScript
21 lines
662 B
TypeScript
![]() |
import { utilityCmd } from "../types";
|
||
|
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||
|
import { sendErrorMessage } from "../../../pluginUtils";
|
||
|
import { getRoleInfoEmbed } from "../functions/getRoleInfoEmbed";
|
||
|
|
||
|
export const RoleInfoCmd = utilityCmd({
|
||
|
trigger: ["role", "roleinfo"],
|
||
|
description: "Show information about a role",
|
||
|
usage: "!role 106391128718245888",
|
||
|
permission: "can_roleinfo",
|
||
|
|
||
|
signature: {
|
||
|
role: ct.role({ required: true }),
|
||
|
},
|
||
|
|
||
|
async run({ message, args, pluginData }) {
|
||
|
const embed = await getRoleInfoEmbed(pluginData, args.role, message.author.id);
|
||
|
message.channel.createMessage({ embed });
|
||
|
},
|
||
|
});
|