File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
application/src/main/java/org/togetherjava/tjbot/commands/free Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -269,12 +269,15 @@ public void updateStatusFor(@NotNull Guild guild) {
269
269
"Guild %s is not configured in the free command system."
270
270
.formatted (guild .getName ()));
271
271
}
272
+
272
273
long channelId = guildIdToStatusChannel .get (guild .getIdLong ());
273
274
TextChannel channel = guild .getTextChannelById (channelId );
275
+
274
276
if (channel == null ) {
275
277
throw new IllegalStateException ("Status channel %d does not exist in guild %s"
276
278
.formatted (channelId , guild .getName ()));
277
279
}
280
+
278
281
return channel ;
279
282
}
280
283
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ enum UserStrings {
25
25
Command not ready please try again in a minute.
26
26
""" ),
27
27
NOT_MONITORED_ERROR ("This channel is not being monitored for free/busy status. If you"
28
- + " believe this channel should be part of the free/busy status system, please discuss it "
29
- + " with a moderator." ),
28
+ + " believe this channel should be part of the free/busy status system, please"
29
+ + " consult a moderator." ),
30
30
NOT_CONFIGURED_ERROR ("""
31
31
This guild (%s) is not configured to use the '/free' command.
32
32
Please add entries in the config, restart the bot and try again.
You can’t perform that action at this time.
0 commit comments