Class EntityMentionParser<E extends @NonNull Entity>

java.lang.Object
dev.sympho.modular_commands.utils.parse.entity.EntityMentionParser<E>
Type Parameters:
E - The entity type.
All Implemented Interfaces:
ParserFunction<String,E>, BiFunction<CommandContext,String,Mono<E>>
Direct Known Subclasses:
ChannelMentionParser, RoleMentionParser, UserMentionParser

public class EntityMentionParser<E extends @NonNull Entity> extends Object implements ParserFunction<String,E>
A parser for mentions of Discord entities.
Since:
1.0
Version:
1.0
  • Constructor Details

    • EntityMentionParser

      @Pure protected EntityMentionParser(EntityRefMentionParser<? extends EntityRef<E>> refParser)
      Creates a new instance.
      Parameters:
      refParser - The parser to obtain the reference with.
  • Method Details