aboutsummaryrefslogtreecommitdiff
path: root/commands/Moderation/timeout.js
diff options
context:
space:
mode:
authorpokesudenk <thisis@notarealema.il>2018-03-09 20:38:46 -0500
committerpokesudenk <thisis@notarealema.il>2018-03-09 20:38:46 -0500
commitbac1c22013700a03ca045d3bb08b18619e7aaef0 (patch)
treee3b82ecb4ac8ff1b502a0004ffec52123df9c5f0 /commands/Moderation/timeout.js
parente214e6e6f17294acc88e80d57cd90a878e71c5e6 (diff)
downloadPokeBot-bac1c22013700a03ca045d3bb08b18619e7aaef0.tar.gz
PokeBot-bac1c22013700a03ca045d3bb08b18619e7aaef0.tar.bz2
PokeBot-bac1c22013700a03ca045d3bb08b18619e7aaef0.zip
fixed many Grammars
Diffstat (limited to 'commands/Moderation/timeout.js')
-rw-r--r--commands/Moderation/timeout.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/Moderation/timeout.js b/commands/Moderation/timeout.js
index fca7bed..9a8dc9a 100644
--- a/commands/Moderation/timeout.js
+++ b/commands/Moderation/timeout.js
@@ -25,7 +25,7 @@ exports.run = async (bot, msg, args) => {
const member = msg.mentions.members.first();
if (!member) return await msg.reply('Who do I put in time-out?');
- msg.member.addRole(msg.guild.roles.find('name', 'Timeout'));
+ member.addRole(msg.guild.roles.find('name', 'Timeout'));
const { RichEmbed } = require('discord.js');
try {