title: Discord JDA EmbedMessage Profile Link
body: <p>Currently I'm making a rather simple logging bot for Discord. All it does is send an <code>EmbedMessage</code> to any #log channel in the server.</p>
  
  <p>This little bit of messy code:</p>
  
  <pre><code>@Override
  public void onMessageReceived(MessageReceivedEvent e) {
  
      Message message = e.getMessage();
      User author = e.getAuthor();
      MessageChannel channel = e.getChannel();
  
      if (channel.getName().equalsIgnoreCase("log") &amp;&amp; !author.isBot()) {
          message.delete().queue();
      } else {
  
          EmbedBuilder eBuilder = new EmbedBuilder();
  
          String aMention = "@" + author.getName() + "#" + author.getDiscriminator();
  
          eBuilder.setAuthor(aMention, null, author.getEffectiveAvatarUrl());
          eBuilder.setColor(Color.GRAY);
          eBuilder.setFooter("#" + channel.getName(), null);
          eBuilder.appendDescription(message.getContentDisplay());
  
          MessageEmbed embed = eBuilder.build();
  
          for (MessageChannel mc : e.getGuild().getTextChannels()) {
              if (mc.getName().equalsIgnoreCase("log") &amp;&amp; !author.isBot()) {
                  mc.sendMessage(embed).queue();
              }
          }
      }
  }
  </code></pre>
  
  <p>is the setup for logging non-bot chatting. Currently, it doesn't seem to setup a direct profile link to the user talking, in the line <code>String aMention = "@" + author.getName() + "#" + author.getDiscriminator();</code>. I tried searching for a specific method that gets a profile link, but currently I am not able to find it.</p>