Skip to content

Commit 45c7656

Browse files
some more cleanup
1 parent 726330d commit 45c7656

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

src/main/java/com/dynxsty/dih4jda/InteractionHandler.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,12 @@ private void upsert(JDA jda, Set<UnqueuedSlashCommandData> slashData, Set<Unqueu
187187
private void upsert(Guild guild, Set<UnqueuedSlashCommandData> slashData, Set<UnqueuedCommandData> commandData) {
188188
StringBuilder commandNames = new StringBuilder();
189189
slashData.forEach(data -> {
190-
if (!data.getGuilds().contains(guild)) {
191-
DIH4JDALogger.info("Skipping Registration of /" + data.getData().getName() + " for Guild: " + guild.getName(), DIH4JDALogger.Type.SLASH_COMMAND_SKIPPED);
192-
} else {
193-
guild.upsertCommand(data.getData()).queue();
194-
commandNames.append(", /" + data.getData().getName());
195-
}
190+
if (!data.getGuilds().contains(guild)) {
191+
DIH4JDALogger.info("Skipping Registration of /" + data.getData().getName() + " for Guild: " + guild.getName(), DIH4JDALogger.Type.SLASH_COMMAND_SKIPPED);
192+
} else {
193+
guild.upsertCommand(data.getData()).queue();
194+
commandNames.append(", /" + data.getData().getName());
195+
}
196196
});
197197
commandData.forEach(data -> {
198198
if (!data.getGuilds().contains(guild)) {

src/main/java/com/dynxsty/dih4jda/interactions/commands/ContextCommand.java

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
*
1212
* @see ContextCommand.User#execute(UserContextInteractionEvent)
1313
* @see ContextCommand.Message#execute(MessageContextInteractionEvent)
14-
*
1514
* @since v1.5
1615
*/
1716
public abstract class ContextCommand extends ExecutableCommand {

src/main/java/com/dynxsty/dih4jda/interactions/commands/ExecutableCommand.java

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*
1616
* @see ContextCommand
1717
* @see SlashCommand
18-
*
1918
* @since v1.5
2019
*/
2120
public abstract class ExecutableCommand extends CommandRequirements {

src/main/java/com/dynxsty/dih4jda/interactions/commands/SlashCommand.java

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* Represents a single Slash Command.
1010
*
1111
* @see SlashCommand#execute(SlashCommandInteractionEvent)
12-
*
1312
* @since v1.5
1413
*/
1514
public abstract class SlashCommand extends ExecutableCommand {

0 commit comments

Comments
 (0)