Skip to content

Commit

Permalink
Log guild IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
WinG4merBR committed Dec 28, 2024
1 parent 282c083 commit fd7145a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ class GuildEventListener(private val foxy: FoxyInstance) : ListenerAdapter() {
when (event) {
is GuildJoinEvent -> {
foxy.mongoClient.utils.guild.getGuild(event.guild.id)
logger.info { "Joined guild ${event.guild.name}" }
logger.info { "Joined guild ${event.guild.name} - ${event.guild.id}" }
}

is GuildLeaveEvent -> {
foxy.mongoClient.utils.guild.deleteGuild(event.guild.id)
logger.info { "Left guild ${event.guild.name}" }
logger.info { "Left guild ${event.guild.name} - ${event.guild.id}" }
}

is GuildMemberJoinEvent -> {
Expand Down

0 comments on commit fd7145a

Please sign in to comment.