There was an error while loading. Please reload this page.
1 parent dfba6ff commit e2c3502Copy full SHA for e2c3502
1 file changed
src/main/java/xyz/srnyx/lazylibrary/LazyLibrary.java
@@ -187,6 +187,18 @@ public String getUserAgent() {
187
return botClass.getSimpleName() + " via LazyLibrary";
188
}
189
190
+ /**
191
+ * Get all owners (primary and others) of the bot
192
+ *
193
+ * @return a set of all owner IDs of the bot
194
+ */
195
+ @NotNull
196
+ public Set<Long> getOwners() {
197
+ final Set<Long> owners = new HashSet<>(fileSettings.owners.other);
198
+ if (fileSettings.owners.primary != null) owners.add(fileSettings.owners.primary);
199
+ return owners;
200
+ }
201
+
202
/**
203
* Checks if the given user ID is an owner of the bot.
204
*
0 commit comments