-
-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Need help] updateRole() incomprehension #107
Comments
Role[] is an array of Roles. This allows you to set multiple roles to a user |
Okay, but my code is incorrect when i apply that |
No,that is not correct. When you supply a index to a array, [int], it represents the element of that position. You are trying to put a role object instead of the entire array. The correct way is |
EDIT: Turn the list to an array first |
So,
Or
It's correct? I think not... |
No,you need to convert the ArrayList to an array. This is simple java |
Oh, okay thanks you |
Hello,
I don't understand this function at updateRole(User user, Role Role[])
What is Role Role[] ?
My code
server.updateRoles(message.getAuthor(), role.equals("Custom"));
Thanks to help me
The text was updated successfully, but these errors were encountered: