mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 01:57:54 +02:00
Current Changes are in
This commit is contained in:
@@ -22,10 +22,10 @@ module.exports = class EmojiCommand extends commando.Command {
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
if (message.channel.type !== 'dm') {
|
||||
return message.channel.send(message.guild.emojis.map(e => e).join(" "));
|
||||
let emojiMes = await message.channel.send(message.guild.emojis.map(e => e).join(" "));
|
||||
}
|
||||
else {
|
||||
return message.channel.send(":x: Error! This command does not work in DM!");
|
||||
let errorMessage = await message.channel.send(":x: Error! This command does not work in DM!");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -40,10 +40,10 @@ module.exports = class GuildInfoCommand extends commando.Command {
|
||||
`${message.guild.owner.user.username}#${message.guild.owner.user.discriminator}`, true)
|
||||
.addField("**Users:**",
|
||||
message.guild.memberCount, true);
|
||||
return message.channel.sendEmbed(embed).catch(console.error);
|
||||
let embededMessage = await message.channel.sendEmbed(embed);
|
||||
}
|
||||
else {
|
||||
return message.channel.send(":x: Error! This command does not work in DM!");
|
||||
let errorMessage = await message.channel.send(":x: Error! This command does not work in DM!");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user