Skip to content

Commit

Permalink
Expose User ID in AuditLogEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
wasdennnoch committed Oct 20, 2023
1 parent d6b1bd6 commit 50846ff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ public interface AuditLogEntry extends DiscordEntity {
*/
AuditLog getAuditLog();

/**
* Gets the id of the user who made the changes.
*
* @return The id of the user who made the changes.
*/
long getUserId();

/**
* Gets the user who made the changes.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ public AuditLog getAuditLog() {
return auditLog;
}

@Override
public long getUserId() {
return userId;
}

@Override
public CompletableFuture<User> getUser() {
return getApi().getUserById(userId);
Expand Down

0 comments on commit 50846ff

Please sign in to comment.