Skip to content

Commit

Permalink
Allow admins to forcibly do archives
Browse files Browse the repository at this point in the history
  • Loading branch information
randomnetcat committed Mar 22, 2024
1 parent e5e5f72 commit d1401f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/org/randomcat/agorabot/commands/Archive.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import org.randomcat.agorabot.commands.base.requirements.permissions.permissions
import org.randomcat.agorabot.commands.base.requirements.permissions.senderHasPermission
import org.randomcat.agorabot.permissions.BotScope
import org.randomcat.agorabot.permissions.GuildScope
import org.randomcat.agorabot.permissions.LogicalOrPermission
import org.randomcat.agorabot.util.DiscordPermission
import org.randomcat.agorabot.util.await
import org.slf4j.LoggerFactory
Expand All @@ -32,7 +33,7 @@ import java.time.format.DateTimeFormatter
import kotlin.io.path.ExperimentalPathApi
import kotlin.io.path.copyToRecursively

private val ARCHIVE_PERMISSION = GuildScope.command("archive")
private val ARCHIVE_PERMISSION = LogicalOrPermission(listOf(GuildScope.command("archive"), BotScope.admin()))

private val LOGGER = LoggerFactory.getLogger("AgoraBotArchiveCommand")

Expand Down

0 comments on commit d1401f1

Please sign in to comment.