Skip to content

Commit

Permalink
Add dashes to EmbedUtils and fixed EmbedManager user
Browse files Browse the repository at this point in the history
  • Loading branch information
dkim19375 committed Jan 24, 2021
1 parent 40aee8b commit 7d019cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
compileJava.options.encoding 'UTF-8'

group 'me.dkim19375'
version '1.2.1'
version '1.3.0'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public EmbedManager(final @Nullable String heading, final @Nullable String headi
public EmbedManager(final @Nullable String title, final @Nullable Color color, final @Nullable String cmd,
final @Nullable User user) {
if (user != null) {
embedBuilder.setAuthor(user.getName(), null, user.getAvatarUrl());
embedBuilder.setAuthor(user.getAsTag(), null, user.getAvatarUrl());
}
embedBuilder.setTimestamp(Instant.now());
embedBuilder.setColor(color);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ private static String combineStrings(String first, String second) {

public static MessageEmbed.Field getEmbedGroup(Map.Entry<String, Set<String>> group) {
final String name = group.getKey();
String value = "```\n";
String value = "```\n- ";
for (String string : group.getValue()) {
value = combineStrings(value, string + "\n");
value = combineStrings(value, string + "\n- ");
}
value = combineStrings(value, "```");
return new MessageEmbed.Field(name, value, true);
Expand Down

0 comments on commit 7d019cc

Please sign in to comment.