diff --git a/commands/search/discrim.js b/commands/search/discrim.js index 910f063d..9b7790e2 100644 --- a/commands/search/discrim.js +++ b/commands/search/discrim.js @@ -26,12 +26,12 @@ module.exports = class DiscrimCommand extends Command { }); } - async run(msg, args) { + run(msg, args) { if(msg.channel.type !== 'dm') if(!msg.channel.permissionsFor(this.client.user).has('EMBED_LINKS')) return msg.say('This Command requires the `Embed Links` Permission.'); const { discrim } = args; - const users = await this.client.users.filter(u => u.discriminator === discrim).map(u => u.username).sort(); + const users = this.client.users.filter(u => u.discriminator === discrim).map(u => u.username).sort(); const embed = new RichEmbed() .setTitle(`${users.length} Users with the discriminator: ${discrim}`) .setDescription(users.join(', ')); diff --git a/commands/userinfo/userinfo.js b/commands/userinfo/userinfo.js index 8c045e80..769fd1e3 100644 --- a/commands/userinfo/userinfo.js +++ b/commands/userinfo/userinfo.js @@ -27,7 +27,7 @@ module.exports = class UserInfoCommand extends Command { }); } - async run(msg, args) { + run(msg, args) { if(msg.channel.type !== 'dm') if(!msg.channel.permissionsFor(this.client.user).has('EMBED_LINKS')) return msg.say('This Command requires the `Embed Links` Permission.'); diff --git a/package.json b/package.json index 5557f4a2..77f4dd8b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "18.3.3", + "version": "18.3.4", "description": "A Discord Bot", "main": "shardingmanager.js", "scripts": {