cardboardbox/commands/Utility/mylevel.js
2019-11-26 16:22:24 -05:00

18 lines
465 B
JavaScript

exports.run = async (client, message, args, level) => {
const friendly = client.config.permLevels.find(l => l.level === level).name;
message.reply(`Your permission level is: ${level} - ${friendly}`);
};
exports.conf = {
enabled: true,
guildOnly: true,
aliases: [],
permLevel: "User"
};
exports.help = {
name: "mylevel",
category: "Utility",
description: "Tells you your permission level for the current message location.",
usage: "mylevel"
};