aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data
diff options
context:
space:
mode:
authorThatGravyBoat <thatgravyboat@gmail.com>2024-10-09 08:14:16 -0230
committerGitHub <noreply@github.com>2024-10-09 12:44:16 +0200
commit2ebce56d4fa44fb12ec15a436feea6c43f7ecd8b (patch)
tree33781b931d7f453399cab746c8c78bac18a4f9a4 /src/main/java/at/hannibal2/skyhanni/data
parenta0229f243df1a158543e8b33923c839e7a017746 (diff)
downloadskyhanni-2ebce56d4fa44fb12ec15a436feea6c43f7ecd8b.tar.gz
skyhanni-2ebce56d4fa44fb12ec15a436feea6c43f7ecd8b.tar.bz2
skyhanni-2ebce56d4fa44fb12ec15a436feea6c43f7ecd8b.zip
Improvement: Add Suggestion Provider and guild support in tab complete (#2637)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/GuildAPI.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/GuildAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/GuildAPI.kt
index 541eb323c..1e98b61e4 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/GuildAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/GuildAPI.kt
@@ -38,7 +38,7 @@ object GuildAPI {
}
}
- fun isInGuild(name: String) = ProfileStorageData.playerSpecific?.guildMembers?.let {
- name in it
- } ?: false
+ fun isInGuild(name: String) = name in getAllMembers()
+
+ fun getAllMembers() = ProfileStorageData.playerSpecific?.guildMembers ?: emptyList()
}