mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 00:07:36 +02:00
Stop Logging Command Use
This commit is contained in:
@@ -40,7 +40,6 @@ module.exports = class BanCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('BAN_MEMBERS')) return message.say(':x: Error! I don\'t have the Ban Members Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
if (!message.guild.channels.exists('name', 'mod_logs')) return message.say(':x: Error! Could not find the mod_logs channel! Please create it!');
|
||||
const member = args.member;
|
||||
const reason = args.reason;
|
||||
|
||||
@@ -37,7 +37,6 @@ module.exports = class KickCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('KICK_MEMBERS')) return message.say(':x: Error! I don\'t have the Kick Members Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
if (!message.guild.channels.exists('name', 'mod_logs')) return message.say(':x: Error! Could not find the mod_logs channel! Please create it!');
|
||||
const member = args.member;
|
||||
const reason = args.reason;
|
||||
|
||||
@@ -31,7 +31,6 @@ module.exports = class LockdownCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['READ_MESSAGES', 'SEND_MESSAGES'])) return;
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('ADMINISTRATOR')) return message.say(':x: Error! I don\'t have the Administrator permission! This is not given by default, as that\'s quite bad practice. Please give it to me to use the lockdown command!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const type = args.type;
|
||||
if (type.toLowerCase() === 'start') {
|
||||
try {
|
||||
|
||||
@@ -44,7 +44,6 @@ module.exports = class PruneCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('READ_MESSAGE_HISTORY')) return message.say(':x: Error! I don\'t have the Read Message History Permission!');
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('MANAGE_MESSAGES')) return message.say(':x: Error! I don\'t have the Manage Messages Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const count = args.count + 1;
|
||||
try {
|
||||
const messages = await message.channel.fetchMessages({
|
||||
|
||||
@@ -46,7 +46,6 @@ module.exports = class UnbanCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('BAN_MEMBERS')) return message.say(':x: Error! I don\'t have the Ban Members Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
if (!message.guild.channels.exists('name', 'mod_logs')) return message.say(':x: Error! Could not find the mod_logs channel! Please create it!');
|
||||
const memberID = args.memberID;
|
||||
const reason = args.reason;
|
||||
|
||||
@@ -36,7 +36,6 @@ module.exports = class WarnCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS')) return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const userToWarn = args.member;
|
||||
const reason = args.reason;
|
||||
if (!message.guild.channels.exists('name', 'mod_logs')) return message.say(':x: Error! Could not find the mod_logs channel! Please create it!');
|
||||
|
||||
Reference in New Issue
Block a user