|
1 |
| -import { Interaction } from 'detritus-client'; |
2 |
| - |
3 |
| -import { Formatter } from '../../../../utils'; |
4 |
| - |
5 |
| -import { BaseInteractionImageCommandOption } from '../../basecommand'; |
6 |
| - |
7 |
| - |
8 |
| -export const COMMAND_NAME = 'explode'; |
9 |
| - |
10 |
| -export class ImageExplodeCommand extends BaseInteractionImageCommandOption { |
11 |
| - description = 'Explode an Image from the center'; |
12 |
| - metadata = { |
13 |
| - id: Formatter.Commands.ImageExplode.COMMAND_ID, |
14 |
| - }; |
15 |
| - name = COMMAND_NAME; |
16 |
| - |
17 |
| - constructor() { |
18 |
| - super({ |
19 |
| - options: [ |
20 |
| - {name: 'scale', description: 'Explode Scale', type: Number}, |
21 |
| - ], |
22 |
| - }); |
23 |
| - } |
24 |
| - |
25 |
| - async run(context: Interaction.InteractionContext, args: Formatter.Commands.ImageExplode.CommandArgs) { |
26 |
| - return Formatter.Commands.ImageExplode.createMessage(context, args); |
27 |
| - } |
28 |
| -} |
| 1 | +import { Interaction } from 'detritus-client'; |
| 2 | + |
| 3 | +import { Formatter } from '../../../../../utils'; |
| 4 | + |
| 5 | +import { BaseInteractionImageCommandOption } from '../../../basecommand'; |
| 6 | + |
| 7 | + |
| 8 | +export const COMMAND_NAME = 'explode'; |
| 9 | + |
| 10 | +export class ImageExplodeCommand extends BaseInteractionImageCommandOption { |
| 11 | + description = 'Explode an Image from the center'; |
| 12 | + metadata = { |
| 13 | + id: Formatter.Commands.ImageExplode.COMMAND_ID, |
| 14 | + }; |
| 15 | + name = COMMAND_NAME; |
| 16 | + |
| 17 | + constructor() { |
| 18 | + super({ |
| 19 | + options: [ |
| 20 | + {name: 'scale', description: 'Explode Scale', type: Number}, |
| 21 | + ], |
| 22 | + }); |
| 23 | + } |
| 24 | + |
| 25 | + async run(context: Interaction.InteractionContext, args: Formatter.Commands.ImageExplode.CommandArgs) { |
| 26 | + return Formatter.Commands.ImageExplode.createMessage(context, args); |
| 27 | + } |
| 28 | +} |
0 commit comments