Skip to content

Commit

Permalink
Whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR committed Feb 1, 2024
1 parent b3b1002 commit c541133
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import net.perfectdreams.loritta.morenitta.dao.ServerConfig
import net.perfectdreams.loritta.morenitta.utils.DiscordUtils
import net.perfectdreams.loritta.morenitta.utils.GuildLorittaUser
import net.perfectdreams.loritta.morenitta.utils.LorittaUser
import net.perfectdreams.loritta.morenitta.utils.extensions.await
import net.perfectdreams.loritta.morenitta.utils.extensions.retrieveMemberOrNullById
import net.perfectdreams.loritta.morenitta.website.LoriWebCode
import net.perfectdreams.loritta.morenitta.website.WebsiteAPIException
import net.perfectdreams.loritta.morenitta.website.utils.WebsiteUtils
Expand Down Expand Up @@ -60,7 +60,7 @@ abstract class RequiresAPIGuildAuthRoute(loritta: LorittaBot, originalDashboardP

val serverConfig = loritta.getOrCreateServerConfig(guildId.toLong()) // get server config for guild

val member = jdaGuild.retrieveMemberById(id).await()
val member = jdaGuild.retrieveMemberOrNullById(id)
var canAccessDashboardViaPermission = false

if (member != null) {
Expand Down

0 comments on commit c541133

Please sign in to comment.