From f57682985559c4ff3fb4d15deb71dd29c4fed6b2 Mon Sep 17 00:00:00 2001 From: Alee Date: Mon, 21 Oct 2019 21:44:05 +0000 Subject: Fixed timeout and forcedrop --- commands/Moderation/timeout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/Moderation') 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 { -- cgit v1.2.3