Make sure to get the right index for the user in object array
This commit is contained in:
parent
ac505fbe34
commit
6fc6298b57
@ -37,7 +37,7 @@ public class MuteCommand extends Command {
|
|||||||
MessageFactory.create("Could not find member!").setColor(member.getColor()).queue(channel);
|
MessageFactory.create("Could not find member!").setColor(member.getColor()).queue(channel);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Member targetMember = (Member) objArray[1];
|
Member targetMember = (Member) objArray[0];
|
||||||
String targetMemberName = String.valueOf(objArray[0]);
|
String targetMemberName = String.valueOf(objArray[0]);
|
||||||
if (targetMember == null) {
|
if (targetMember == null) {
|
||||||
MessageFactory.create("Could not find member!").setColor(member.getColor()).queue(channel);
|
MessageFactory.create("Could not find member!").setColor(member.getColor()).queue(channel);
|
||||||
|
Loading…
Reference in New Issue
Block a user