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) {
269269 "Guild %s is not configured in the free command system."
270270 .formatted (guild .getName ()));
271271 }
272+
272273 long channelId = guildIdToStatusChannel .get (guild .getIdLong ());
273274 TextChannel channel = guild .getTextChannelById (channelId );
275+
274276 if (channel == null ) {
275277 throw new IllegalStateException ("Status channel %d does not exist in guild %s"
276278 .formatted (channelId , guild .getName ()));
277279 }
280+
278281 return channel ;
279282 }
280283
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ enum UserStrings {
2525 Command not ready please try again in a minute.
2626 """ ),
2727 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." ),
3030 NOT_CONFIGURED_ERROR ("""
3131 This guild (%s) is not configured to use the '/free' command.
3232 Please add entries in the config, restart the bot and try again.
You can’t perform that action at this time.
0 commit comments