Skip to content

Commit

Permalink
Remove some unused imports and fix deprecated username function usage
Browse files Browse the repository at this point in the history
  • Loading branch information
bombies committed Aug 14, 2023
1 parent 9b156c9 commit f764921
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion src/main/kotlin/main/main/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import main.constants.ENV
import main.utils.GeneralUtils
import main.utils.lavalink.LavaNode
import org.json.JSONObject
import org.slf4j.LoggerFactory
import java.awt.Color
import java.io.File
import java.io.IOException
Expand Down
9 changes: 1 addition & 8 deletions src/main/kotlin/main/main/Listener.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main.main

import dev.minn.jda.ktx.coroutines.await
import dev.minn.jda.ktx.messages.send
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
import main.audiohandlers.RobertifyAudioManager
import main.events.AbstractEventController
Expand All @@ -11,10 +10,6 @@ import main.utils.RobertifyEmbedUtils
import main.utils.component.interactions.slashcommand.AbstractSlashCommand
import main.utils.database.mongodb.cache.BotDBCache
import main.utils.json.guildconfig.GuildConfig
import main.utils.json.locale.LocaleConfig
import main.utils.json.reminders.RemindersConfig
import main.utils.json.requestchannel.RequestChannelConfig
import main.utils.locale.LocaleManager
import main.utils.locale.messages.UnbanMessages
import net.dv8tion.jda.api.entities.Guild
import net.dv8tion.jda.api.entities.User
Expand All @@ -24,10 +19,8 @@ import net.dv8tion.jda.api.events.guild.GuildReadyEvent
import net.dv8tion.jda.api.exceptions.ErrorHandler
import net.dv8tion.jda.api.requests.ErrorResponse
import org.slf4j.LoggerFactory
import org.yaml.snakeyaml.reader.ReaderException
import java.util.concurrent.Executors
import java.util.concurrent.TimeUnit
import kotlin.math.log

class Listener : AbstractEventController() {

Expand Down Expand Up @@ -110,7 +103,7 @@ class Listener : AbstractEventController() {
)
).queue(null) {
ErrorHandler().handle(ErrorResponse.CANNOT_SEND_TO_USER) {
logger.warn("Was not able to send an unban message to ${user.asTag} (${user.idLong})")
logger.warn("Was not able to send an unban message to ${user.name} (${user.idLong})")
}
}
}
Expand Down

0 comments on commit f764921

Please sign in to comment.