Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into 38-reminder-text-limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Trip-kun authored Jan 5, 2024
2 parents 208540d + 8aa3fd1 commit c300c00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void run() {
if (messageReaction.getEmoji().asUnicode().getAsCodepoints().equalsIgnoreCase("U+2b50")) {
for (Iterator<User> it = messageReaction.retrieveUsers().stream().iterator(); count >= guildEntity.getStarboardLimit() || it.hasNext(); ) {
User user = it.next();
if (user.getIdLong()!= event.getUserIdLong()) {
if (user.getIdLong()!= event.retrieveMessage().complete().getIdLong()) {
count++;
}

Expand All @@ -78,7 +78,7 @@ public void run() {
int height = 0;
int width = 0;
for (Message.Attachment a : message.getAttachments()) {
if (url == "") {
if (url.isBlank()) {
url = a.getUrl();
height = a.getHeight();
width = a.getWidth();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void run() {
if (messageReaction.getEmoji().asUnicode().getAsCodepoints().equalsIgnoreCase("U+2b50")) {
for (Iterator<User> it = messageReaction.retrieveUsers().stream().iterator(); count >= guildEntity.getStarboardLimit() || it.hasNext(); ) {
User user = it.next();
if (user.getIdLong()!= event.getUserIdLong()) {
if (user.getIdLong()!= event.retrieveMessage().complete().getIdLong()) {
count++;
}

Expand Down

0 comments on commit c300c00

Please sign in to comment.