Skip to content

Commit f7a99c6

Browse files
committed
🔒 Restrict load to administrators
1 parent 89f5b07 commit f7a99c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

commands/load-backup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const backup = require('discord-backup');
33
exports.run = async (client, message, args) => {
44

55
// If the member doesn't have enough permissions
6-
if(!message.member.hasPermission('MANAGE_MESSAGES')){
6+
if(!message.member.hasPermission('ADMINISTRATOR')){
77
return message.channel.send(':x: You need to have the manage messages permissions to create a backup in this server.');
88
}
99

0 commit comments

Comments
 (0)