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);
}
}