Fixed the fact that the importer id and the guild id were flipped

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2020-10-31 21:18:30 +01:00
parent bcf1bb766d
commit c2a6080cfe

View File

@ -78,8 +78,8 @@ public class Download extends Command {
List<SubtitleBlock> 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);