cardboardbox/commands/Utility/mylevel.js

19 lines
465 B
JavaScript
Raw Normal View History

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"
};