woomy/commands/level.js
2020-04-01 19:33:02 +11:00

24 lines
580 B
JavaScript

exports.conf = {
enabled: true,
guildOnly: false,
aliases: ['plevel', 'permlevel'],
permLevel: 'User',
requiredPerms: [],
cooldown: 2000
}
exports.help = {
name: 'level',
category: 'Utility',
description: 'Returns your permission level.',
usage: 'level'
}
exports.run = async (client, message, args, level) => {
try {
const friendly = client.config.permLevels.find(l => l.level === level).name
message.reply(`your permission level is ${level} (${friendly}).`)
} catch (err) {
message.channel.send('There was an error!\n' + err).catch()
}
}