Fix invalid error catching

This commit is contained in:
NovaFox161
2021-07-07 18:40:38 -05:00
parent 20bf3ffc16
commit 130a08f14f

View File

@@ -42,7 +42,7 @@ class GetWebGuildEndpoint(val client: DiscordClient) {
val g = client.getGuildById(guildId)
WebGuild.fromGuild(g).onErrorResume(BotNotInGuildException::class.java) { Mono.empty() }.flatMap { wg ->
WebGuild.fromGuild(g).flatMap { wg ->
val member = g.member(userId)
val manageServerMono = PermissionChecker.hasManageServerRole(member, g)