Add Nick and Message
Signed-off-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
3179c626ca
Commit
cc1eb7dd74
@ -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 {
|
||||||
|
@ -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();
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren