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:
parent
fb4f70a29c
commit
519cb4ece2
7 changed files with 247 additions and 46 deletions
20
backend/src/plugins/Utility/commands/RoleInfoCmd.ts
Normal file
20
backend/src/plugins/Utility/commands/RoleInfoCmd.ts
Normal 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 });
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue