mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-08 07:11:49 +02:00
Prefix Change and General Code Improvements
This commit is contained in:
@@ -16,6 +16,6 @@ module.exports = class SpamCommand extends Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('ATTACH_FILES')) return message.say(':x: Error! I don\'t have the Attach Files Permission!');
|
||||
}
|
||||
return message.channel.sendFile('./images/Spam.jpg');
|
||||
return message.channel.send({file: './images/Spam.jpg'});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user