mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 14:21:41 +02:00
Bug Fixes and Minor Modifications
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"banned": {
|
||||
"BANNEDUSERID": "BANNEDUSERID"
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
const commando = require('discord.js-commando');
|
||||
const banlist = require('./banlist.json');
|
||||
const config = require('../../config.json');
|
||||
|
||||
module.exports = class ContactCommand extends commando.Command {
|
||||
@@ -22,9 +21,6 @@ module.exports = class ContactCommand extends commando.Command {
|
||||
}]
|
||||
});
|
||||
}
|
||||
hasPermission(msg) {
|
||||
return !banlist.banned[msg.author.id];
|
||||
}
|
||||
|
||||
async run(message, args) {
|
||||
if (message.channel.type !== 'dm') {
|
||||
|
||||
Reference in New Issue
Block a user