Unpromote channelByValue from API

This commit is contained in:
Draycia committed 2023-07-08 17:18:41 -07:00
1 parent 4ce7a46391
commit fd2bb08553
2 files changed
-10

No files matched your search

@@ -56,15 +56,6 @@ public interface ChannelRegistry {
*/
@Nullable ChatChannel channel(final Key key);
/**
* Gets the channel with the matching key's value.
*
* @param value the channel's key's value
* @return the channel
* @since 2.1.0
*/
@Nullable ChatChannel channelByValue(final String value);
/**
* Gets the default key.
*
@@ -427,7 +427,6 @@ public class CarbonChannelRegistry implements ChannelRegistry {
return this.channelRegistry.getOrCreateHolder(key).value();
}
@Override
public @Nullable ChatChannel channelByValue(final String value) {
if (value.contains(":")) {
return this.channel(Key.key(value));