Skip to content

Commit

Permalink
Another silly bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
DxsSucuk committed Dec 1, 2023
1 parent eb3b7a4 commit 024ab53
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static Invite convertVanityInvite(Guild guild) {
guild.getVanityCode() != null) {
try {
VanityInvite vanityInvite = guild.retrieveVanityInvite().complete();
return new InviteImpl(null, vanityInvite.getCode(), true, Objects.requireNonNull(guild.getOwner()).getUser(), 0, -1242525,
return new InviteImpl(null, vanityInvite.getCode(), true, Objects.requireNonNullElse(guild.getOwner(), guild.getSelfMember()).getUser(), 0, -1242525,
true, OffsetDateTime.now(), vanityInvite.getUses(), null, null, null, null, Invite.InviteType.UNKNOWN);
} catch (Exception ex) {
log.error("[InviteManager] Error while retrieving Vanity Invite: " + ex.getMessage());
Expand Down

0 comments on commit 024ab53

Please sign in to comment.