mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-03 15:10:14 +08:00
Make CommandParameter sealed
This commit is contained in:
parent
7f0cb4581e
commit
dcacacefad
@ -31,7 +31,7 @@ import kotlin.reflect.typeOf
|
||||
* Inherited instances must be [CommandValueParameter] or [CommandReceiverParameter]
|
||||
*/
|
||||
@ExperimentalCommandDescriptors
|
||||
public interface CommandParameter<T : Any?> {
|
||||
public sealed interface CommandParameter<T : Any?> {
|
||||
public val name: String?
|
||||
|
||||
public val isOptional: Boolean
|
||||
|
Loading…
Reference in New Issue
Block a user