Quoted argument not consumed as single argument

I am trying the basic echo command from the guide, and finding that an argument in quotes, which is supposed to be a taken as a single argument is not occurring.
import { ApplyOptions } from '@sapphire/decorators';
import { Args, Command } from '@sapphire/framework';
import type { Message } from 'discord.js';


@ApplyOptions<Command.Options>({
aliases: ['send'],
description: '',
quotes: [],
preconditions: [],
flags: [],
options: []
})
export class UserCommand extends Command {
public async messageRun(message: Message, args: Args) {
const text = await args.pick('string');
await message.channel.send(text);
}

}
import { ApplyOptions } from '@sapphire/decorators';
import { Args, Command } from '@sapphire/framework';
import type { Message } from 'discord.js';


@ApplyOptions<Command.Options>({
aliases: ['send'],
description: '',
quotes: [],
preconditions: [],
flags: [],
options: []
})
export class UserCommand extends Command {
public async messageRun(message: Message, args: Args) {
const text = await args.pick('string');
await message.channel.send(text);
}

}
Solution:
Remove the quotes: []. Thats telling the argument parser to ignore quotes
Jump to solution
2 Replies
Solution
Ben
Ben2y ago
Remove the quotes: []. Thats telling the argument parser to ignore quotes
Ravelt
Ravelt2y ago
Ah gotcha thanks
Want results from more Discord servers?
Add your server