From d1342f0388a8309163d7880fcaebec093da39bf4 Mon Sep 17 00:00:00 2001 From: Luck Date: Fri, 1 Dec 2017 23:43:59 +0000 Subject: [PATCH] Updated Developer API (markdown) --- Developer-API.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Developer-API.md b/Developer-API.md index 23b8dbb..55810bd 100644 --- a/Developer-API.md +++ b/Developer-API.md @@ -356,9 +356,7 @@ public boolean addPermission(User user, String permission) { System.out.println("Successfully set permission!"); // refresh the user's permissions, so the change is "live" - // this method is blocking, but it's fine, because this callback is - // ran async. - user.refreshPermissions(); + user.refreshCachedData(); }, api.getStorage().getAsyncExecutor());