Class ArgumentResolverContext


  • public final class ArgumentResolverContext
    extends java.lang.Object
    Represents a data about a specific argument
    • Constructor Summary

      Constructors 
      Constructor Description
      ArgumentResolverContext​(@NotNull java.lang.String argument, @NotNull net.dv8tion.jda.api.JDA jda)  
      ArgumentResolverContext​(@NotNull java.lang.String argument, @Nullable net.dv8tion.jda.api.entities.Guild guild, @NotNull net.dv8tion.jda.api.JDA jda)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.lang.String getArgument()
      Returns the specific argument.
      @Nullable net.dv8tion.jda.api.entities.Guild getGuild()
      Returns the Guild where the argument was send if it was sent into a guild text channel.
      @NotNull net.dv8tion.jda.api.JDA getJda()
      Returns the shard.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArgumentResolverContext

        public ArgumentResolverContext​(@NotNull
                                       @NotNull java.lang.String argument,
                                       @NotNull
                                       @NotNull net.dv8tion.jda.api.JDA jda)
      • ArgumentResolverContext

        public ArgumentResolverContext​(@NotNull
                                       @NotNull java.lang.String argument,
                                       @Nullable
                                       @Nullable net.dv8tion.jda.api.entities.Guild guild,
                                       @NotNull
                                       @NotNull net.dv8tion.jda.api.JDA jda)
    • Method Detail

      • getArgument

        @NotNull
        public @NotNull java.lang.String getArgument()
        Returns the specific argument.
        Returns:
        argument
      • getGuild

        @Nullable
        public @Nullable net.dv8tion.jda.api.entities.Guild getGuild()
        Returns the Guild where the argument was send if it was sent into a guild text channel.
        Returns:
        guild
      • getJda

        @NotNull
        public @NotNull net.dv8tion.jda.api.JDA getJda()
        Returns the shard.
        Returns:
        shard