provide member object instead of ID

This commit is contained in:
Emily 2021-03-04 12:46:21 +11:00
parent bc8ce64caa
commit 744ec1951a
8 changed files with 14 additions and 14 deletions

View file

@ -24,12 +24,12 @@ module.exports = class {
list.push(`${user.username}#${user.discriminator}`);
}
if (list.length === 0) return message.channel.createMessage('The server blocklist is currently empty. Use `blocklist add <user>` to add people to the blocklist!');
if (list.length === 0) return message.channel.=('The server blocklist is currently empty. Use `blocklist add <user>` to add people to the blocklist!');
const embed = new client.RichEmbed()
.setTitle('Users on blocklist: ' + data.guild.blocklist.length)
.setDescription('```' + list.join(', ') + '```')
.setColour(client.functions.displayHexColour(message.channel.guild, client.user.id));
.setColour(client.functions.displayHexColour(message.channel.guild));
message.channel.createMessage({ embed: embed });