Class ChannelParser<C extends @NonNull Channel>

java.lang.Object
dev.sympho.modular_commands.utils.parse.entity.EntityParser<C>
dev.sympho.modular_commands.utils.parse.entity.ChannelParser<C>
Type Parameters:
C - The channel type.
All Implemented Interfaces:
ParserFunction<String,C>, BiFunction<CommandContext,String,Mono<C>>

public class ChannelParser<C extends @NonNull Channel> extends EntityParser<C>
A parser that extracts a channel from a string.
Since:
1.0
Version:
1.0
  • Constructor Details

    • ChannelParser

      public ChannelParser(Class<C> type)
      Creates a new instance.
      Parameters:
      type - The type of channel.