From c2a6080cfe7a49a9b300798a083310dce98dc9d6 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Sat, 31 Oct 2020 21:18:30 +0100 Subject: [PATCH] Fixed the fact that the importer id and the guild id were flipped Signed-off-by: Louis Vallat --- src/main/java/xyz/vallat/louis/commands/Download.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/xyz/vallat/louis/commands/Download.java b/src/main/java/xyz/vallat/louis/commands/Download.java index d72d427..c7298e8 100644 --- a/src/main/java/xyz/vallat/louis/commands/Download.java +++ b/src/main/java/xyz/vallat/louis/commands/Download.java @@ -78,8 +78,8 @@ public class Download extends Command { List blocks = new SubtitleParser().parseSRT( subs.getData().get(0).getContentAsString(subtitleInfo.get().getEncoding())); SubtitleLineManager.importSubtitleLines(blocks, language, movie, - event.getGuildId().isPresent() ? event.getGuildId().get() : null, - event.getMember().isPresent() ? event.getMember().get().getId() : null); + event.getMember().isPresent() ? event.getMember().get().getId() : null, + event.getGuildId().isPresent() ? event.getGuildId().get() : null); embed.setColor(Color.MEDIUM_SEA_GREEN).setDescription("Everything went well. " + "Congratulations and thank you for your contribution!"); embed.addField("You imported", blocks.size() + " lines into my database", false);