Skip to content

Commit

Permalink
Update RateLimitUtil.java
Browse files Browse the repository at this point in the history
  • Loading branch information
xdnw committed Jun 18, 2024
1 parent 19434cc commit 2296cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/link/locutus/discord/util/RateLimitUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ private static <T> T handleNews(T t) {
if (t instanceof Message msg) {
MessageChannelUnion channel = msg.getChannel();
if (channel instanceof NewsChannel news && msg.getGuild().getSelfMember().hasAccess(news)) {
news.crosspostMessageById(msg.getIdLong()).queue();
queue(news.crosspostMessageById(msg.getIdLong()));
}
}
return t;
Expand Down

0 comments on commit 2296cb8

Please sign in to comment.