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: []
quotes: []
. Thats telling the argument parser to ignore quotes