Updated Developer API (markdown)

Luck 2017-12-01 23:43:59 +00:00
parent 481bd89d88
commit d1342f0388

@ -356,9 +356,7 @@ public boolean addPermission(User user, String permission) {
System.out.println("Successfully set permission!"); System.out.println("Successfully set permission!");
// refresh the user's permissions, so the change is "live" // refresh the user's permissions, so the change is "live"
// this method is blocking, but it's fine, because this callback is user.refreshCachedData();
// ran async.
user.refreshPermissions();
}, api.getStorage().getAsyncExecutor()); }, api.getStorage().getAsyncExecutor());