mirror of
https://github.com/DreamExposure/DisCal-Discord-Bot.git
synced 2026-01-28 06:48:30 -06:00
Fix invalid error catching
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user