monorepo/apps/bot/.sapphire/templates/arguments/argument.ts
2024-12-09 12:01:58 +00:00

15 lines
376 B
TypeScript

import { ApplyOptions } from '@sapphire/decorators';
import { Argument } from '@sapphire/framework';
@ApplyOptions<Argument.Options>({})
export class UserArgument extends Argument<string> {
public override run(parameter: string) {
return this.ok(parameter);
}
}
declare module '@sapphire/framework' {
interface ArgType {
/*{{name}}*/: string;
}
}