Add command permission checks
Level 0: Every user - Public commands Level 1: Guild owners or members with respective admin role - Elevated guild commands Level 2: Global admins - Every command including levels below
This commit is contained in:
@@ -12,7 +12,7 @@ module.exports = {
|
||||
.setDescription("The id of the character to drop")
|
||||
.setRequired(true)
|
||||
),
|
||||
|
||||
permissionLevel: 2,
|
||||
async execute(interaction) {
|
||||
//get user id from database given the userID
|
||||
const user = await User.findOne({
|
||||
|
||||
Reference in New Issue
Block a user