From 2296cb8209558519e784b8d314a24c1640a8affe Mon Sep 17 00:00:00 2001 From: test Date: Tue, 18 Jun 2024 21:17:34 +1000 Subject: [PATCH] Update RateLimitUtil.java --- src/main/java/link/locutus/discord/util/RateLimitUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/link/locutus/discord/util/RateLimitUtil.java b/src/main/java/link/locutus/discord/util/RateLimitUtil.java index d07fcce5..ffedfba3 100644 --- a/src/main/java/link/locutus/discord/util/RateLimitUtil.java +++ b/src/main/java/link/locutus/discord/util/RateLimitUtil.java @@ -246,7 +246,7 @@ private static 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;