diff --git a/src/main/java/net/discordjug/javabot/listener/MessageLinkListener.java b/src/main/java/net/discordjug/javabot/listener/MessageLinkListener.java index 425c99385..86c4cb29b 100644 --- a/src/main/java/net/discordjug/javabot/listener/MessageLinkListener.java +++ b/src/main/java/net/discordjug/javabot/listener/MessageLinkListener.java @@ -48,7 +48,7 @@ public void onMessageReceived(@NotNull MessageReceivedEvent event) { messageChannel.getType().isThread() ? messageChannel.getIdLong() : 0, List.of(ActionRow.of( Button.link(m.getJumpUrl(), "Jump to Message"), - Button.secondary(InteractionUtils.createDeleteInteractionId(m.getAuthor().getIdLong()), "\uD83D\uDDD1️"))), + Button.secondary(InteractionUtils.createDeleteInteractionId(event.getAuthor().getIdLong()), "\uD83D\uDDD1️"))), null)); }, e -> ExceptionLogger.capture(e, getClass().getSimpleName()))); }