Skip to content

Commit

Permalink
fix(sfv3-rrh): migrate rrh to subcommands v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Lutonite committed Sep 28, 2022
1 parent ca83f95 commit 9ef5a34
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/commands/rentsch.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,31 @@ import {
} from '@sapphire/fetch';
import type { Args } from '@sapphire/framework';
import { reply, send } from '@sapphire/plugin-editable-commands';
import { SubCommandPluginCommand } from '@sapphire/plugin-subcommands';
import { Subcommand } from '@sapphire/plugin-subcommands';
import { Guild, type Message, MessageEmbed } from 'discord.js';
import {
type CollectionReference,
FieldPath,
type Query,
} from 'firebase-admin/firestore';

@ApplyOptions<SubCommandPluginCommand.Options>({
@ApplyOptions<Subcommand.Options>({
name: 'rentsch',
description: 'Tell a truth about life. (!rrh help for all commands)',
aliases: ['rrh'],
subCommands: [
{ input: 'get', default: true },
'add',
'edit',
'delete',
'help',
'import',
'export',
subcommands: [
{ name: 'get', messageRun: 'get', default: true },
{ name: 'add', messageRun: 'add' },
{ name: 'edit', messageRun: 'edit' },
{ name: 'delete', messageRun: 'delete' },
{ name: 'help', messageRun: 'help' },
{ name: 'import', messageRun: 'import' },
{ name: 'export', messageRun: 'export' },
],
enabled: true,
runIn: 'GUILD_TEXT',
})
export default class RentschCommand extends SubCommandPluginCommand {
export default class RentschCommand extends Subcommand {
public async get(message: Message) {
const { logger } = this.container;
if (!message.guild) {
Expand Down

0 comments on commit 9ef5a34

Please sign in to comment.