Signed-off-by: Lixfel <git-5w3l@lixfel.de>
Dieser Commit ist enthalten in:
Ursprung
47f29e8bc7
Commit
42dea17ff0
@ -91,11 +91,11 @@ public class DiscordTicketHandler extends ListenerAdapter {
|
||||
.append("<t:").append(message.getTimeCreated().toInstant().getEpochSecond()).append("> ")
|
||||
.append("**").append(message.getAuthor().getName()).append("**: ")
|
||||
.append(message.getContentRaw())
|
||||
.append("\n");
|
||||
.append("\n\n");
|
||||
|
||||
if(!message.getAttachments().isEmpty()) {
|
||||
message.getAttachments().forEach(attachment -> stringBuilder.append(attachment.getUrl()));
|
||||
stringBuilder.append("\n");
|
||||
stringBuilder.append("\n\n");
|
||||
}
|
||||
|
||||
return stringBuilder;
|
||||
|
@ -33,7 +33,7 @@ import java.util.stream.Collectors;
|
||||
@UtilityClass
|
||||
public class DiscordRanks {
|
||||
|
||||
private final Map<UserPerm.Prefix, String> prefixToPermName = UserPerm.prefixes.entrySet().stream().collect(Collectors.toMap(Map.Entry::getValue, entry -> entry.getKey().name()));
|
||||
private final Map<UserPerm.Prefix, String> prefixToPermName = UserPerm.prefixes.entrySet().stream().collect(Collectors.toMap(Map.Entry::getValue, entry -> entry.getKey().name().toLowerCase()));
|
||||
|
||||
public void update(SteamwarUser user) {
|
||||
if (user.getDiscordId() == null)
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren