We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6efb2c commit 5d5ae05Copy full SHA for 5d5ae05
1 file changed
application/src/main/java/org/togetherjava/tjbot/features/basic/QuoteBoardForwarder.java
@@ -1,6 +1,7 @@
1
package org.togetherjava.tjbot.features.basic;
2
3
import net.dv8tion.jda.api.JDA;
4
+import net.dv8tion.jda.api.entities.Guild;
5
import net.dv8tion.jda.api.entities.Message;
6
import net.dv8tion.jda.api.entities.MessageReaction;
7
import net.dv8tion.jda.api.entities.channel.concrete.TextChannel;
@@ -114,7 +115,7 @@ private RestAction<Void> markAsProcessed(Message message) {
114
115
* @return the board text channel
116
*/
117
private Optional<TextChannel> findQuoteBoardChannel(JDA jda, long guildId) {
- var guild = jda.getGuildById(guildId);
118
+ Guild guild = jda.getGuildById(guildId);
119
120
if (guild == null) {
121
throw new IllegalStateException(
0 commit comments