25 lines
600 B
JavaScript
25 lines
600 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',
|
|
params: ''
|
|
}
|
|
|
|
exports.run = async (client, message, args, level, data) => {
|
|
try {
|
|
const friendly = client.config.permLevels.find(l => l.level === level).name
|
|
message.reply(`Your permission level is: ${friendly} (${level})`)
|
|
} catch (err) {
|
|
message.channel.send('There was an error!\n' + err).catch()
|
|
}
|
|
}
|