DisKan/commands/mylevel.js

22 lines
720 B
JavaScript
Raw Normal View History

2022-01-24 14:05:30 -05:00
const config = require("../config.js");
const { settings } = require("../modules/settings.js");
exports.run = async (client, message, args, level) => {
const friendly = config.permLevels.find(l => l.level === level).name;
const replying = settings.ensure(message.guild.id, config.defaultSettings).commandReply;
message.reply({ content: `Your permission level is: ${level} - ${friendly}`, allowedMentions: { repliedUser: (replying === "true") }});
};
exports.conf = {
enabled: true,
guildOnly: true,
aliases: [],
permLevel: "User"
};
exports.help = {
name: "mylevel",
category: "Miscellaneous",
description: "Tells you your permission level for the current message location.",
usage: "mylevel"
};