3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-07 19:17:19 +00:00

Add !roleinfo and !emojiinfo (#198)

This commit is contained in:
Almeida 2021-05-06 19:19:57 +01:00 committed by GitHub
parent fb4f70a29c
commit 519cb4ece2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 247 additions and 46 deletions

View file

@ -0,0 +1,20 @@
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 });
},
});