Start implementing bot info command
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-11-21 12:19:35 +01:00
parent 6e9291c535
commit 79c8f1a95e
6 changed files with 178 additions and 80 deletions

View File

@@ -7,13 +7,12 @@ import net.dv8tion.jda.api.interactions.commands.OptionMapping;
import org.jetbrains.annotations.NotNull;
import wtf.beatrice.hidekobot.Configuration;
import java.awt.*;
public class AvatarCommand
{
public void runSlashCommand(@NotNull SlashCommandInteractionEvent event)
{
// defer reply because this might take a moment
event.deferReply().queue();
User user;
@@ -55,7 +54,7 @@ public class AvatarCommand
// embed processing
{
embedBuilder.setColor(Color.PINK);
embedBuilder.setColor(Configuration.getBotColor());
embedBuilder.setTitle("Profile picture");
embedBuilder.addField("User", "<@" + user.getId() + ">", false);