From 7235d32274e39a3420ae056f246c28ea4f72ff96 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Tue, 2 Oct 2018 19:48:49 +0200 Subject: [PATCH] Show user id --- commands/utility/feedback.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/utility/feedback.js b/commands/utility/feedback.js index ad478b5..c42a580 100644 --- a/commands/utility/feedback.js +++ b/commands/utility/feedback.js @@ -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!'); - } + } }; \ No newline at end of file