diff options
| author | Alee <Alee14498@gmail.com> | 2019-10-21 21:44:05 +0000 |
|---|---|---|
| committer | Alee <Alee14498@gmail.com> | 2019-10-21 21:44:05 +0000 |
| commit | f57682985559c4ff3fb4d15deb71dd29c4fed6b2 (patch) | |
| tree | 2be4f931f528cb204aae4a5fbd3d00b1c34be5d2 /commands/Moderation | |
| parent | a5439413f2288043f76b3932d1ea47d37d7bb66d (diff) | |
| download | PokeBot-f57682985559c4ff3fb4d15deb71dd29c4fed6b2.tar.gz PokeBot-f57682985559c4ff3fb4d15deb71dd29c4fed6b2.tar.bz2 PokeBot-f57682985559c4ff3fb4d15deb71dd29c4fed6b2.zip | |
Fixed timeout and forcedrop
Diffstat (limited to 'commands/Moderation')
| -rw-r--r-- | commands/Moderation/timeout.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/Moderation/timeout.js b/commands/Moderation/timeout.js index 2e479ac..294ebd5 100644 --- a/commands/Moderation/timeout.js +++ b/commands/Moderation/timeout.js @@ -16,7 +16,7 @@ exports.run = async (bot, msg) => { 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 { |
