mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-03 15:10:14 +08:00
Give built-in providers with priority -1
This commit is contained in:
parent
0ee15dda7f
commit
c6c2eff8f7
@ -26,6 +26,7 @@ public object SpaceSeparatedCommandCallParser : CommandCallParser {
|
||||
@ExperimentalCommandDescriptors
|
||||
public object Provider : CommandCallParserProvider {
|
||||
override val instance: CommandCallParser get() = SpaceSeparatedCommandCallParser
|
||||
override val priority: Int get() = -1
|
||||
}
|
||||
|
||||
override fun parse(caller: CommandSender, message: MessageChain): CommandCall? {
|
||||
|
@ -31,6 +31,7 @@ public object BuiltInCommandCallResolver : CommandCallResolver {
|
||||
|
||||
internal object Provider : CommandCallResolverProvider {
|
||||
override val instance: CommandCallResolver = BuiltInCommandCallResolver
|
||||
override val priority: Int get() = -1
|
||||
}
|
||||
|
||||
override fun resolve(call: CommandCall): CommandResolveResult {
|
||||
|
@ -102,9 +102,8 @@ internal class BuiltInPermissionService : AbstractConcurrentPermissionService<Pe
|
||||
PermissionService<PermissionImpl> {
|
||||
|
||||
class Provider : PermissionServiceProvider {
|
||||
override val instance: PermissionService<*> by lazy {
|
||||
BuiltInPermissionService()
|
||||
}
|
||||
override val instance: PermissionService<*> by lazy { BuiltInPermissionService() }
|
||||
override val priority: Int get() = -1
|
||||
}
|
||||
|
||||
override val permissionType: KClass<PermissionImpl>
|
||||
|
Loading…
Reference in New Issue
Block a user