diff --git a/common/src/main/java/com/discordsrv/common/channel/ChannelConfigHelper.java b/common/src/main/java/com/discordsrv/common/channel/ChannelConfigHelper.java index eb70cb05..e51debaa 100644 --- a/common/src/main/java/com/discordsrv/common/channel/ChannelConfigHelper.java +++ b/common/src/main/java/com/discordsrv/common/channel/ChannelConfigHelper.java @@ -142,6 +142,12 @@ public class ChannelConfigHelper { return channels().computeIfAbsent(ChannelConfig.DEFAULT_KEY, key -> new BaseChannelConfig()); } + public Set getKeys() { + Set keys = new LinkedHashSet<>(channels().keySet()); + keys.remove(ChannelConfig.DEFAULT_KEY); + return keys; + } + public Set> getAllChannels() { BaseChannelConfig defaultConfig = getDefault();