mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 14:38:51 +00:00
Unpromote channelByValue from API
This commit is contained in:
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);
|
@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.
|
* Gets the default key.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -427,7 +427,6 @@ public class CarbonChannelRegistry implements ChannelRegistry {
|
|||||||
return this.channelRegistry.getOrCreateHolder(key).value();
|
return this.channelRegistry.getOrCreateHolder(key).value();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public @Nullable ChatChannel channelByValue(final String value) {
|
public @Nullable ChatChannel channelByValue(final String value) {
|
||||||
if (value.contains(":")) {
|
if (value.contains(":")) {
|
||||||
return this.channel(Key.key(value));
|
return this.channel(Key.key(value));
|
||||||
|
|||||||
Reference in new issue
Block a user