```js import { ApplyOptions } from '@sapphire/decorators'; import { Subcommand } from '@sapphire/plu

import { ApplyOptions } from '@sapphire/decorators';
import { Subcommand } from '@sapphire/plugin-subcommands';
import { Message } from 'discord.js';

@ApplyOptions<Subcommand.Options>({
subcommands: [{ name: 'group1', type: 'group', entries: [{ name: 'sub1', messageRun: 'sub1' }] }]
})
export class UserCommand extends Subcommand {
public async sub1(message: Message) {
this.container.send(message, { content: 'sub1 works!' });
}
}
import { ApplyOptions } from '@sapphire/decorators';
import { Subcommand } from '@sapphire/plugin-subcommands';
import { Message } from 'discord.js';

@ApplyOptions<Subcommand.Options>({
subcommands: [{ name: 'group1', type: 'group', entries: [{ name: 'sub1', messageRun: 'sub1' }] }]
})
export class UserCommand extends Subcommand {
public async sub1(message: Message) {
this.container.send(message, { content: 'sub1 works!' });
}
}
10 Replies
Favna
Favna•3y ago
Errr Let me update my test bot code Huh @24 @UndiedGFX you people, I told you a million times to test this and you didnt angery even default in groups works reeee
UndiedGFX
UndiedGFX•3y ago
kaname tested it.......right? and i remember 42 saying it worked
Favna
Favna•3y ago
Well either he didn't or he didn't test groups Okay I fixed it for defaults But not for actual matching And that's also fixed Now to check chat input commands as well 🙄
EvolutionX
EvolutionX•3y ago
😦
EvolutionX
EvolutionX•3y ago
Hauntless
Hauntless•3y ago
Is there a Logger inside sapphire I can use for my discord.js project, I like how the Sapphire's logging looks with <Client>#logger
Favna
Favna•3y ago
If you want 1 general hint Evo, please for the love of god make screenshots of whole files/errors and not just single lines. For one you won't have to send multiple screenshots but for another it's far easier to read
EvolutionX
EvolutionX•3y ago
sorry 😅

Did you find this page helpful?