Class RoleRefMentionParser

java.lang.Object
dev.sympho.modular_commands.utils.parse.entity.EntityRefMentionParser<EntityRef.RoleRef>
dev.sympho.modular_commands.utils.parse.entity.RoleRefMentionParser
All Implemented Interfaces:
ParserFunction<String,EntityRef.RoleRef>, BiFunction<CommandContext,String,Mono<EntityRef.RoleRef>>

public class RoleRefMentionParser extends EntityRefMentionParser<EntityRef.RoleRef>
A parser for user mentions to references.

Note that this parser does not support @everyone and @here in EntityRefMentionParser.parseId(String), as they do not have a unique ID. They are, however, supported by parseRef(CommandContext, String) and EntityRefMentionParser.parse(CommandContext, String).

Since:
1.0
Version:
1.0