Skip to content

Commit

Permalink
✨ Added author retrieve value in guild log entry create event
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsTheSky committed May 12, 2024
1 parent 0a4f4f5 commit 273a33d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public class GuildLogEntryEvent extends DiSkyEvent<GuildAuditLogEntryCreateEvent

SkriptUtils.registerValue(BukkitGuildLogEntryEvent.class, Guild.class,
event -> event.getJDAEvent().getGuild(), 0);
SkriptUtils.registerRestValue("author", BukkitGuildLogEntryEvent.class,
event -> event.getJDAEvent().getGuild().retrieveMemberById(event.getJDAEvent().getEntry().getUserIdLong()));

}

Expand Down

0 comments on commit 273a33d

Please sign in to comment.