Class ChannelArgument.MessageParser<C>

java.lang.Object
cloud.commandframework.jda.parsers.ChannelArgument.MessageParser<C>
All Implemented Interfaces:
cloud.commandframework.arguments.parser.ArgumentParser<C,net.dv8tion.jda.api.entities.MessageChannel>
Enclosing class:
ChannelArgument<C>

public static final class ChannelArgument.MessageParser<C> extends Object implements cloud.commandframework.arguments.parser.ArgumentParser<C,net.dv8tion.jda.api.entities.MessageChannel>
  • Field Summary

    Fields inherited from interface cloud.commandframework.arguments.parser.ArgumentParser

    DEFAULT_ARGUMENT_COUNT
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct a new argument parser for MessageChannel
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    @NonNull cloud.commandframework.arguments.parser.ArgumentParseResult<net.dv8tion.jda.api.entities.MessageChannel>
    parse(@NonNull cloud.commandframework.context.CommandContext<C> commandContext, @NonNull Queue<@NonNull String> inputQueue)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface cloud.commandframework.arguments.parser.ArgumentParser

    getRequestedArgumentCount, map, suggestions
  • Constructor Details

    • MessageParser

      public MessageParser(@NonNull Set<ChannelArgument.ParserMode> modes)
      Construct a new argument parser for MessageChannel
      Parameters:
      modes - List of parsing modes to use when parsing
      Throws:
      IllegalStateException - If no parsing modes were provided
  • Method Details

    • parse

      public @NonNull cloud.commandframework.arguments.parser.ArgumentParseResult<net.dv8tion.jda.api.entities.MessageChannel> parse(@NonNull cloud.commandframework.context.CommandContext<C> commandContext, @NonNull Queue<@NonNull String> inputQueue)
      Specified by:
      parse in interface cloud.commandframework.arguments.parser.ArgumentParser<C,net.dv8tion.jda.api.entities.MessageChannel>
    • isContextFree

      public boolean isContextFree()
      Specified by:
      isContextFree in interface cloud.commandframework.arguments.parser.ArgumentParser<C,net.dv8tion.jda.api.entities.MessageChannel>