From 8929dd48e6c1f056f5f5a5673b7fb566cf5d5751 Mon Sep 17 00:00:00 2001 From: Vankka Date: Tue, 12 Apr 2022 12:39:31 +0300 Subject: [PATCH] Broadcast tab completing --- .../com/discordsrv/common/channel/ChannelConfigHelper.java | 6 ++++++ 1 file changed, 6 insertions(+) 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();