Skip to content

Commit

Permalink
Only log the self member if there's something wrong with it
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR committed May 3, 2024
1 parent 306c583 commit b2e98df
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,7 @@ class PreStartGatewayEventReplayListener(
for (guild in jdaImpl.guilds) {
val hasSelfMember = try { guild.selfMember } catch (e: IllegalStateException) { null } != null

if (hasSelfMember) {
logger.info { "Self Member in Guild ${guild.name} (${guild.idLong}): OK" }
} else {
if (!hasSelfMember) {
logger.warn { "Self Member in Guild ${guild.name} (${guild.idLong}): Missing! Something went wrong!!" }
}
}
Expand Down

0 comments on commit b2e98df

Please sign in to comment.