Used discrims instead of User object in Color Command messages.
This commit is contained in:
parent
7e57f2f56c
commit
ed14d476e1
@ -20,7 +20,7 @@ public class ColorCommand extends Command {
|
||||
@Override
|
||||
public void onCommand(CommandContext ctx) {
|
||||
ctx.getApi().getOwner().thenAcceptAsync(owner -> {
|
||||
ctx.reply("This command is no longer active. An alternative is currently being developed. For more information, please contact " + owner);
|
||||
ctx.reply("This command is no longer active. An alternative is currently being developed. For more information, please contact " + owner.getDiscriminatedName());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -5,10 +5,7 @@
|
||||
|
||||
package dev.salmonllama.fsbot.commands.general;
|
||||
|
||||
import dev.salmonllama.fsbot.config.BotConfig;
|
||||
import dev.salmonllama.fsbot.database.controllers.ColorRoleController;
|
||||
import dev.salmonllama.fsbot.guthix.*;
|
||||
import org.javacord.api.entity.message.embed.EmbedBuilder;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
@ -24,7 +21,7 @@ public class ColorsCommand extends Command {
|
||||
@Override
|
||||
public void onCommand(CommandContext ctx) {
|
||||
ctx.getApi().getOwner().thenAcceptAsync(owner -> {
|
||||
ctx.reply("This command is no longer active. An alternative is currently being developed. For more information, please contact " + owner);
|
||||
ctx.reply("This command is no longer active. An alternative is currently being developed. For more information, please contact " + owner.getDiscriminatedName());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -5,11 +5,7 @@
|
||||
|
||||
package dev.salmonllama.fsbot.commands.staff;
|
||||
|
||||
import dev.salmonllama.fsbot.config.BotConfig;
|
||||
import dev.salmonllama.fsbot.database.controllers.ColorRoleController;
|
||||
import dev.salmonllama.fsbot.database.models.ColorRole;
|
||||
import dev.salmonllama.fsbot.guthix.*;
|
||||
import org.javacord.api.entity.permission.Role;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
@ -25,7 +21,7 @@ public class AddColorCommand extends Command {
|
||||
@Override
|
||||
public void onCommand(CommandContext ctx) {
|
||||
ctx.getApi().getOwner().thenAcceptAsync(owner -> {
|
||||
ctx.reply("This command is no longer active. An alternative is currently being developed. For more information, please contact " + owner);
|
||||
ctx.reply("This command is no longer active. An alternative is currently being developed. For more information, please contact " + owner.getDiscriminatedName());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user