Show user id

This commit is contained in:
loicbersier 2018-10-02 19:48:49 +02:00
parent 41b5c7ea42
commit 7235d32274

View file

@ -1,5 +1,6 @@
const { Command } = require('discord.js-commando');
const { feedbackChannel } = require('../../config.json');
const fs = require('fs');
module.exports = class feedbackCommand extends Command {
constructor(client) {
super(client, {
@ -19,7 +20,7 @@ module.exports = class feedbackCommand extends Command {
async run(message, { text }) {
const channel = this.client.channels.get(feedbackChannel);
channel.send(`from ${message.author}: ${text}`);
channel.send(`from ${message.author} (${message.author.id}): ${text}`);
message.say('Your feedback has been sent!');
}
}
};