mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 02:15:10 +02:00
A variety of fixes and a change in the way errors are handled.
This commit is contained in:
@@ -27,7 +27,7 @@ module.exports = class UserInfoCommand extends Command {
|
||||
async run(message, args) {
|
||||
if (message.channel.type !== 'dm')
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('EMBED_LINKS'))
|
||||
return message.say(':x: Error! I don\'t have the Embed Links Permission!');
|
||||
return message.say('This Command requires the `Embed Links` Permission.');
|
||||
const { user } = args;
|
||||
const member = await message.guild.fetchMember(user);
|
||||
let stat;
|
||||
|
||||
Reference in New Issue
Block a user