Make sure to get the right index for the user in object array

This commit is contained in:
Venal 2018-02-21 20:16:40 -05:00
parent ac505fbe34
commit 6fc6298b57

View File

@ -37,7 +37,7 @@ public class MuteCommand extends Command {
MessageFactory.create("Could not find member!").setColor(member.getColor()).queue(channel);
return;
}
Member targetMember = (Member) objArray[1];
Member targetMember = (Member) objArray[0];
String targetMemberName = String.valueOf(objArray[0]);
if (targetMember == null) {
MessageFactory.create("Could not find member!").setColor(member.getColor()).queue(channel);