Remove Debug messages

This commit is contained in:
Salmonllama 2020-07-27 22:41:02 -04:00
parent 995a3738df
commit b6f9f4f144

View File

@ -99,7 +99,6 @@ public class PermissionCommand extends Command {
} }
private void add(CommandContext ctx) { private void add(CommandContext ctx) {
System.out.println("Add run");
if (ctx.getMessage().getMentionedUsers().isEmpty()) { if (ctx.getMessage().getMentionedUsers().isEmpty()) {
System.out.println("No mentioned users"); System.out.println("No mentioned users");
// If no mentioned users, improper usage // If no mentioned users, improper usage
@ -107,12 +106,10 @@ public class PermissionCommand extends Command {
} }
String userId = ctx.getMessage().getMentionedUsers().get(0).getIdAsString(); String userId = ctx.getMessage().getMentionedUsers().get(0).getIdAsString();
System.out.println(String.format("Got mentioned user %s", userId));
StaticPermission perm = new StaticPermission.StaticPermissionBuilder(userId).setPermission(ctx.getArgs()[2]).build(); StaticPermission perm = new StaticPermission.StaticPermissionBuilder(userId).setPermission(ctx.getArgs()[2]).build();
StaticPermissionController.insert(perm).thenAcceptAsync((Void) -> { StaticPermissionController.insert(perm).thenAcceptAsync((Void) -> {
System.out.println("Permission added");
EmbedBuilder response = new EmbedBuilder() EmbedBuilder response = new EmbedBuilder()
.setTitle("Permissions Added") .setTitle("Permissions Added")
.addField("User:", userId) .addField("User:", userId)