Package com.mrivanplays.jdcf.args
Class ArgumentResolverContext
- java.lang.Object
-
- com.mrivanplays.jdcf.args.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 theGuild
where the argument was send if it was sent into a guild text channel.@NotNull net.dv8tion.jda.api.JDA
getJda()
Returns the shard.
-
-
-
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 theGuild
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
-
-