嵌入不工作的 JDA 但我的其他嵌入是

时间:2021-06-29 16:55:32

标签: java discord discord-jda

我的所有其他命令都可以工作,包括我的其他嵌入,但不是这个,我没有做任何不同的事情,所以我知道出了什么问题,可能是因为描述太长但我不确定

EmbedBuilder topgearhorizonspecial = new EmbedBuilder();
      about.setTitle("I'm Chris Harris...");
      about.setDescription("I'm Chris Harris and this is the TopGear horizon special, ah yes, the stig, our very own UFO, unidentifed fast object, the worlds least obediant racing driver, right then the lotus elise a 90s classic based on the old age roadster recipie, 2 seats, engine in the middle, rear wheel drive, not an ounce of fat, this is what driving is all about");
      about.setColor(Color.magenta);
      
      if (args[0].equalsIgnoreCase(Main.prefix + "chrisharris")) {
          event.getChannel().sendTyping().queue();
          event.getChannel().sendMessage(topgearhorizonspecial.build()).queue();
      }

1 个答案:

答案 0 :(得分:0)

试试这个

EmbedBuilder topgearhorizonspecial = new EmbedBuilder();
      topgearhorizonspecial.setTitle("I'm Chris Harris...");
      topgearhorizonspecial.setDescription("I'm Chris Harris and this is the TopGear horizon special, ah yes, the stig, our very own UFO, unidentifed fast object, the worlds least obediant racing driver, right then the lotus elise a 90s classic based on the old age roadster recipie, 2 seats, engine in the middle, rear wheel drive, not an ounce of fat, this is what driving is all about");
      topgearhorizonspecial.setColor(Color.magenta);
      
      if (args[0].equalsIgnoreCase(Main.prefix + "chrisharris")) {
          event.getChannel().sendTyping().queue();
          event.getChannel().sendMessage(topgearhorizonspecial.build()).queue();
      }