Include user tag in message logger
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bea 2022-08-26 00:15:47 +02:00
parent a48daf7c8d
commit 7d068892e2

View File

@ -21,7 +21,7 @@ public class MessageLogger extends ListenerAdapter
public void onMessageReceived(@NotNull MessageReceivedEvent event) public void onMessageReceived(@NotNull MessageReceivedEvent event)
{ {
String toLog = ""; String toLog = "";
String userName = event.getAuthor().getName(); String userName = event.getAuthor().getAsTag();
String message = event.getMessage().getContentDisplay(); String message = event.getMessage().getContentDisplay();
if(event.getChannel() instanceof TextChannel) if(event.getChannel() instanceof TextChannel)