package stream.flarebot.flarebot.commands.secret;

import net.dv8tion.jda.core.MessageBuilder;
import net.dv8tion.jda.core.entities.Member;
import net.dv8tion.jda.core.entities.Message;
import net.dv8tion.jda.core.entities.TextChannel;
import net.dv8tion.jda.core.entities.User;
import stream.flarebot.flarebot.commands.Command;
import stream.flarebot.flarebot.commands.CommandType;
import stream.flarebot.flarebot.objects.GuildWrapper;

import java.io.File;

public class LogsCommand implements Command {
    @Override
    public void onCommand(User sender, GuildWrapper guild, TextChannel channel, Message message, String[] args, Member member) {
        if (getPermissions(channel).isCreator(sender)) {
            channel.sendFile(new File("latest.log"), new MessageBuilder().append('\u200B').build()).queue();
        }
    }

    @Override
    public String getCommand() {
        return "logs";
    }

    @Override
    public String getDescription() {
        return "Gets the logs";
    }

    @Override
    public String getUsage() {
        return "{%}logs";
    }

    @Override
    public CommandType getType() {
        return CommandType.SECRET;
    }

    @Override
    public boolean isDefaultPermission() {
        return false;
    }
}

@@ -497,18 +497,20 @@
 Command 
+ 
 %7B%0A
+%0A
     @Ove
@@ -648,69 +648,8 @@
 ) %7B%0A
-        if (getPermissions(channel).isCreator(sender)) %7B%0A    
     
@@ -753,18 +753,8 @@
 ();%0A
-        %7D%0A
     

Remove unnessacary check and format