diff --git a/lib/src/commands/chat_command.dart b/lib/src/commands/chat_command.dart index 7a1b545..e732a40 100644 --- a/lib/src/commands/chat_command.dart +++ b/lib/src/commands/chat_command.dart @@ -283,7 +283,7 @@ class ChatCommand final List> argumentTypes = []; /// The arguments of [execute], in the order they appear. - final List arguments = []; + final List> arguments = []; @override final CommandOptions options; @@ -374,16 +374,7 @@ class ChatCommand // ignore: deprecated_member_use_from_same_package argumentTypes.add(parameter.type); - arguments.add( - CommandArgument( - name: parameter.name, - isOptional: parameter.isOptional, - type: parameter.type, - description: parameter.description, - localizedDescriptions: parameter.localizedDescriptions, - localizedNames: parameter.localizedNames, - ), - ); + arguments.add(parameter); } } diff --git a/lib/src/util/util.dart b/lib/src/util/util.dart index a018a52..228b76d 100644 --- a/lib/src/util/util.dart +++ b/lib/src/util/util.dart @@ -649,33 +649,3 @@ Future computePermissions( return computeOverwrites(await computeBasePermissions()); } - -/// Represents a command argument. -class CommandArgument { - /// The name of this argument. - final String name; - - /// The localized names of this argument. - final Map? localizedNames; - - /// The description of this argument. - final String? description; - - /// The localized descriptions of this argument. - final Map? localizedDescriptions; - - /// The argument type. - final RuntimeType? type; - - /// Whether this argument is optional. - final bool isOptional; - - const CommandArgument({ - required this.name, - required this.isOptional, - this.localizedNames, - this.description, - this.localizedDescriptions, - this.type, - }); -}