mirror of
https://github.com/mamoe/mirai.git
synced 2026-09-04 05:52:51 +08:00
Make CommandParameter sealed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user