chore: make code style consistent

This commit is contained in:
Citymonstret 2022-06-10 10:24:50 +02:00 committed by Jason
parent a2cea2f33e
commit 89ec3fbf29
380 changed files with 479 additions and 936 deletions

View file

@ -173,5 +173,4 @@ public class JavacordCommand<C> implements MessageCreateListener {
throwable.printStackTrace();
});
}
}

View file

@ -135,5 +135,4 @@ public class JavacordCommandManager<C> extends CommandManager<C> {
public @NonNull DiscordApi getDiscordApi() {
return this.discordApi;
}
}

View file

@ -116,5 +116,4 @@ public class JavacordCommandSender {
public CompletableFuture<Message> sendSuccessMessage(final @Nullable String message) {
return this.sendMessage(":white_check_mark: " + message);
}
}

View file

@ -49,5 +49,4 @@ public class JavacordPrivateSender extends JavacordCommandSender {
.orElseThrow(() -> new UnsupportedOperationException(
"PrivateTextChannel not present even though message was sent in a private channel"));
}
}

View file

@ -62,5 +62,4 @@ public class JavacordServerSender extends JavacordCommandSender {
.orElseThrow(() -> new UnsupportedOperationException(
"Server not present even though message was sent on a server"));
}
}

View file

@ -76,5 +76,4 @@ public class JDA4CommandManager<C> extends JDACommandManager<C> {
backwardsCommandSenderMapper.andThen((sender) -> sender.getEvent().orElseThrow(IllegalStateException::new))
);
}
}

View file

@ -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();
}
}

View file

@ -193,5 +193,4 @@ public class JDACommandManager<C> extends CommandManager<C> {
public final @NonNull CommandMeta createDefaultCommandMeta() {
return SimpleCommandMeta.empty();
}
}

View file

@ -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());
}
}
}

View file

@ -102,5 +102,4 @@ public class JDACommandSender {
public final @NonNull MessageChannel getChannel() {
return this.channel;
}
}

View file

@ -73,5 +73,4 @@ public class JDAGuildSender extends JDACommandSender {
public @NonNull TextChannel getTextChannel() {
return this.channel;
}
}

View file

@ -61,5 +61,4 @@ public class JDAPrivateSender extends JDACommandSender {
public @NonNull PrivateChannel getPrivateChannel() {
return this.channel;
}
}

View file

@ -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());
}
}
}

View file

@ -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());
}
}
}

View file

@ -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());
}
}
}