🚧 Work in progress

This commit is contained in:
Freeze455
2021-08-17 09:45:19 +02:00
parent 01e9f5d87d
commit 247b90b451
3 changed files with 42 additions and 14 deletions

View File

@@ -33,8 +33,8 @@ import { Message, CommandInteraction } from 'discord.js'
scope: ['guild id'], // or 'GLOBAL'
roles: ['role id'],
options: {
name: 'send-ticket',
description: 'SendEmbed ticket description',
name: 'foo',
description: 'Foo description',
options: [],
},
})
@@ -42,4 +42,19 @@ export default class FooSlashCommand implements BaseSlashCommand {
public async run(interaction: CommandInteraction): Promise<void> {
// Your code here
}
}`
}`
export const middleware = `
import {
Middleware,
BaseMiddleware,
MiddlewareContext
} from '@discord-factory/core'
@Middleware({ pattern: '(?<count>\\\\d+)-args')}
export default class FooMiddleware implements BaseMiddleware {
public async run(context: MiddlewareContext): Promise<void> {
// Your code here
}
}
`