mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 06:37:32 +02:00
async no
This commit is contained in:
@@ -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.type !== 'dm')
|
||||||
if(!msg.channel.permissionsFor(this.client.user).has('EMBED_LINKS'))
|
if(!msg.channel.permissionsFor(this.client.user).has('EMBED_LINKS'))
|
||||||
return msg.say('This Command requires the `Embed Links` Permission.');
|
return msg.say('This Command requires the `Embed Links` Permission.');
|
||||||
const { discrim } = args;
|
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()
|
const embed = new RichEmbed()
|
||||||
.setTitle(`${users.length} Users with the discriminator: ${discrim}`)
|
.setTitle(`${users.length} Users with the discriminator: ${discrim}`)
|
||||||
.setDescription(users.join(', '));
|
.setDescription(users.join(', '));
|
||||||
|
|||||||
@@ -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.type !== 'dm')
|
||||||
if(!msg.channel.permissionsFor(this.client.user).has('EMBED_LINKS'))
|
if(!msg.channel.permissionsFor(this.client.user).has('EMBED_LINKS'))
|
||||||
return msg.say('This Command requires the `Embed Links` Permission.');
|
return msg.say('This Command requires the `Embed Links` Permission.');
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiaobot",
|
"name": "xiaobot",
|
||||||
"version": "18.3.3",
|
"version": "18.3.4",
|
||||||
"description": "A Discord Bot",
|
"description": "A Discord Bot",
|
||||||
"main": "shardingmanager.js",
|
"main": "shardingmanager.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user