import { Subcommand } from '@sapphire/plugin-subcommands';
import {
ActionRowBuilder,
ChannelType,
ModalActionRowComponentBuilder,
ModalBuilder,
TextInputBuilder,
TextInputStyle,
channelMention,
inlineCode
} from 'discord.js';
import CustomEmbed, { CustomEmbedType } from '../lib/CustomEmbed.js';
import Utils from '../lib/Utils.js';
import { PaginatedMenuResponse } from '../lib/PaginatedMenuResponse.js';
/**
* Adds usable quotes.
*/
export class QuotesSubcommandGroup extends Subcommand {
public constructor(context: Subcommand.LoaderContext, options: Subcommand.Options) {
super(context, {
...options,
name: 'quotes',
subcommands: [
{
name: 'add',
chatInputRun: 'chatInputAdd'
},
]
});
}
public override registerApplicationCommands(registry: Subcommand.Registry) {
registry.registerChatInputCommand(
(builder) =>
builder
.setName('quotes') //
.setDescription('Manages the list of quotes.')
.setDefaultMemberPermissions('0')
.addSubcommand((subCommand) => {
return subCommand //
.setName('add')
.setDescription('Add quotes to the list.');
})
{
idHints: ['1217906420926644305'],
guildIds: this.container.environment.GUILD_IDS.split(',')
}
);
}
public async chatInputAdd(interaction: Subcommand.ChatInputCommandInteraction) {
throw new Error("Test");
}
}
import { Subcommand } from '@sapphire/plugin-subcommands';
import {
ActionRowBuilder,
ChannelType,
ModalActionRowComponentBuilder,
ModalBuilder,
TextInputBuilder,
TextInputStyle,
channelMention,
inlineCode
} from 'discord.js';
import CustomEmbed, { CustomEmbedType } from '../lib/CustomEmbed.js';
import Utils from '../lib/Utils.js';
import { PaginatedMenuResponse } from '../lib/PaginatedMenuResponse.js';
/**
* Adds usable quotes.
*/
export class QuotesSubcommandGroup extends Subcommand {
public constructor(context: Subcommand.LoaderContext, options: Subcommand.Options) {
super(context, {
...options,
name: 'quotes',
subcommands: [
{
name: 'add',
chatInputRun: 'chatInputAdd'
},
]
});
}
public override registerApplicationCommands(registry: Subcommand.Registry) {
registry.registerChatInputCommand(
(builder) =>
builder
.setName('quotes') //
.setDescription('Manages the list of quotes.')
.setDefaultMemberPermissions('0')
.addSubcommand((subCommand) => {
return subCommand //
.setName('add')
.setDescription('Add quotes to the list.');
})
{
idHints: ['1217906420926644305'],
guildIds: this.container.environment.GUILD_IDS.split(',')
}
);
}
public async chatInputAdd(interaction: Subcommand.ChatInputCommandInteraction) {
throw new Error("Test");
}
}