Archiviert
1
0

Add Nick and Message

Signed-off-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
Chaoscaot 2021-07-28 22:34:01 +02:00
Ursprung 3179c626ca
Commit cc1eb7dd74
2 geänderte Dateien mit 8 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -66,6 +66,9 @@ public class AuthManager {
builder.setActionRows(ActionRow.of(Button.success("tada", Emoji.fromUnicode("U+1F389")), Button.danger("invalid", "Ich war das nicht"))); builder.setActionRows(ActionRow.of(Button.success("tada", Emoji.fromUnicode("U+1F389")), Button.danger("invalid", "Ich war das nicht")));
member.getUser().openPrivateChannel().complete().sendMessage(builder.build()).complete(); member.getUser().openPrivateChannel().complete().sendMessage(builder.build()).complete();
if(member.getNickname() == null) {
member.getGuild().modifyNickname(member, user.getUserName()).complete();
}
TOKENS.remove(code); TOKENS.remove(code);
return member; return member;
} else { } else {

Datei anzeigen

@ -95,6 +95,11 @@ public class DiscordTicketListener extends BasicDiscordListener {
stringBuilder.append("\n"); stringBuilder.append("\n");
}); });
stringBuilder.append("\n");
stringBuilder.append("<t:").append(Instant.now().getEpochSecond()).append("> ")
.append("**").append(event.getUser().getName()).append("**: ")
.append("Ticket geschlossen");
EmbedBuilder embedBuilder = new EmbedBuilder(); EmbedBuilder embedBuilder = new EmbedBuilder();
embedBuilder.setColor(Color.GREEN); embedBuilder.setColor(Color.GREEN);
User user = event.getJDA().retrieveUserById(event.getTextChannel().getTopic()).complete(); User user = event.getJDA().retrieveUserById(event.getTextChannel().getTopic()).complete();