show author username

This commit is contained in:
loicbersier 2018-10-12 15:28:09 +02:00
parent b40bc7cc8f
commit 6ad819f9a7

View file

@ -9,7 +9,7 @@ module.exports = class feedbackCommand extends Command {
memberName: 'feedback', memberName: 'feedback',
description: `Send feedback`, description: `Send feedback`,
throttling: { throttling: {
usages: 1, usages: 2,
duration: 60, duration: 60,
}, },
args: [ args: [
@ -24,7 +24,7 @@ module.exports = class feedbackCommand extends Command {
async run(message, { text }) { async run(message, { text }) {
const channel = this.client.channels.get(feedbackChannel); const channel = this.client.channels.get(feedbackChannel);
channel.send(`from ${message.author} (${message.author.id}): ${text}`); channel.send(`from ${message.author.username} (${message.author} : ${message.author.id}): ${text}`);
message.say('Your feedback has been sent!'); message.say('Your feedback has been sent!');
} }
}; };