chore: make code style consistent
This commit is contained in:
parent
a2cea2f33e
commit
89ec3fbf29
380 changed files with 479 additions and 936 deletions
|
|
@ -76,5 +76,4 @@ public class JDA4CommandManager<C> extends JDACommandManager<C> {
|
|||
backwardsCommandSenderMapper.andThen((sender) -> sender.getEvent().orElseThrow(IllegalStateException::new))
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -137,5 +137,4 @@ public class JDACommandListener<C> extends ListenerAdapter {
|
|||
private void sendMessage(final @NonNull MessageReceivedEvent event, final @NonNull String message) {
|
||||
event.getChannel().sendMessage(message).queue();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -193,5 +193,4 @@ public class JDACommandManager<C> extends CommandManager<C> {
|
|||
public final @NonNull CommandMeta createDefaultCommandMeta() {
|
||||
return SimpleCommandMeta.empty();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,11 +54,11 @@ final class JDACommandPreprocessor<C> implements CommandPreprocessor<C> {
|
|||
* Stores the {@link net.dv8tion.jda.api.JDA} in the context with the key "JDA",
|
||||
* the {@link net.dv8tion.jda.api.events.message.MessageReceivedEvent} with the key "MessageReceivedEvent", and
|
||||
* the {@link net.dv8tion.jda.api.entities.MessageChannel} with the key "MessageChannel".
|
||||
*
|
||||
* <p>
|
||||
* If the message was sent in a guild, the {@link net.dv8tion.jda.api.entities.Guild} will be stored in the context with the
|
||||
* key "Guild". If the message was also sent in a text channel, the {@link net.dv8tion.jda.api.entities.TextChannel} will be
|
||||
* stored in the context with the key "TextChannel".
|
||||
*
|
||||
* <p>
|
||||
* If the message was sent in a DM instead of in a guild, the {@link net.dv8tion.jda.api.entities.PrivateChannel} will be
|
||||
* stored in the context with the key "PrivateChannel".
|
||||
*/
|
||||
|
|
@ -88,5 +88,4 @@ final class JDACommandPreprocessor<C> implements CommandPreprocessor<C> {
|
|||
context.getCommandContext().store("PrivateChannel", event.getPrivateChannel());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -102,5 +102,4 @@ public class JDACommandSender {
|
|||
public final @NonNull MessageChannel getChannel() {
|
||||
return this.channel;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,5 +73,4 @@ public class JDAGuildSender extends JDACommandSender {
|
|||
public @NonNull TextChannel getTextChannel() {
|
||||
return this.channel;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,5 +61,4 @@ public class JDAPrivateSender extends JDACommandSender {
|
|||
public @NonNull PrivateChannel getPrivateChannel() {
|
||||
return this.channel;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -157,7 +157,6 @@ public final class ChannelArgument<C> extends CommandArgument<C, MessageChannel>
|
|||
this.modes
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -269,7 +268,6 @@ public final class ChannelArgument<C> extends CommandArgument<C, MessageChannel>
|
|||
|
||||
return ArgumentParseResult.success(channel);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -295,7 +293,6 @@ public final class ChannelArgument<C> extends CommandArgument<C, MessageChannel>
|
|||
public final @NonNull String getInput() {
|
||||
return this.input;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -316,7 +313,6 @@ public final class ChannelArgument<C> extends CommandArgument<C, MessageChannel>
|
|||
public @NonNull String getMessage() {
|
||||
return String.format("Too many channels found for '%s'.", getInput());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -337,7 +333,5 @@ public final class ChannelArgument<C> extends CommandArgument<C, MessageChannel>
|
|||
public @NonNull String getMessage() {
|
||||
return String.format("Channel not found for '%s'.", getInput());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -148,7 +148,6 @@ public final class RoleArgument<C> extends CommandArgument<C, Role> {
|
|||
this.modes
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -260,7 +259,6 @@ public final class RoleArgument<C> extends CommandArgument<C, Role> {
|
|||
|
||||
return ArgumentParseResult.success(role);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -286,7 +284,6 @@ public final class RoleArgument<C> extends CommandArgument<C, Role> {
|
|||
public final @NonNull String getInput() {
|
||||
return this.input;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -307,7 +304,6 @@ public final class RoleArgument<C> extends CommandArgument<C, Role> {
|
|||
public @NonNull String getMessage() {
|
||||
return String.format("Too many roles found for '%s'.", getInput());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -328,7 +324,5 @@ public final class RoleArgument<C> extends CommandArgument<C, Role> {
|
|||
public @NonNull String getMessage() {
|
||||
return String.format("Role not found for '%s'.", getInput());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -192,7 +192,6 @@ public final class UserArgument<C> extends CommandArgument<C, User> {
|
|||
this.isolationLevel
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -343,7 +342,6 @@ public final class UserArgument<C> extends CommandArgument<C, User> {
|
|||
return ArgumentParseResult.success(user);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -369,7 +367,6 @@ public final class UserArgument<C> extends CommandArgument<C, User> {
|
|||
public final @NonNull String getInput() {
|
||||
return this.input;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -390,7 +387,6 @@ public final class UserArgument<C> extends CommandArgument<C, User> {
|
|||
public @NonNull String getMessage() {
|
||||
return String.format("Too many users found for '%s'.", getInput());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -411,7 +407,5 @@ public final class UserArgument<C> extends CommandArgument<C, User> {
|
|||
public @NonNull String getMessage() {
|
||||
return String.format("User not found for '%s'.", getInput());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue