Save username + blocked by id with !block
parent
3e2954f4e3
commit
5ab65a701e
|
@ -185,7 +185,8 @@ addInboxServerCommand('close', async (msg, args, thread) => {
|
|||
|
||||
addInboxServerCommand('block', (msg, args, thread) => {
|
||||
async function block(userId) {
|
||||
await blocked.block(userId);
|
||||
const user = bot.users.get(userId);
|
||||
await blocked.block(userId, (user ? `${user.username}#${user.discriminator}` : ''), msg.author.id);
|
||||
msg.channel.createMessage(`Blocked <@${userId}> (id ${userId}) from modmail`);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue