File tree Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ export const Api = Object.freeze({
173
173
174
174
IMAGE_TOOLS_BACKGROUND_REMOVE :
175
175
'/image/tools/background/remove' ,
176
- IMAGE_TOOLS_OBJECT_REMOVE :
176
+ IMAGE_TOOLS_OBJECT_REMOVE :
177
177
'/image/tools/object/remove' ,
178
178
IMAGE_TOOLS_CONVERT :
179
179
'/image/tools/convert' ,
@@ -305,6 +305,9 @@ export const Api = Object.freeze({
305
305
export const CDN = Tools . URIEncodeWrap ( {
306
306
URL : Domains . CDN ,
307
307
308
+ COMMAND_ASSETS_B1 :
309
+ '/command-assets/b1.png' ,
310
+
308
311
EMOJIS_APPLE : ( codepoint : string ) =>
309
312
`/emojis/apple/128x128/${ codepoint } .png` ,
310
313
EMOJIS_TWEMOJI : ( codepoint : string ) =>
Original file line number Diff line number Diff line change
1
+ import { Command , CommandClient } from 'detritus-client' ;
2
+
3
+ import { CDN } from '../../../api/endpoints' ;
4
+ import { CommandCategories } from '../../../constants' ;
5
+ import { editOrReply } from '../../../utils' ;
6
+
7
+ import { BaseCommand } from '../basecommand' ;
8
+
9
+
10
+ export const COMMAND_NAME = 'b1' ;
11
+
12
+ export default class B1Command extends BaseCommand {
13
+ constructor ( client : CommandClient ) {
14
+ super ( client , {
15
+ name : COMMAND_NAME ,
16
+
17
+ metadata : {
18
+ description : 'cool' ,
19
+ examples : [
20
+ COMMAND_NAME ,
21
+ ] ,
22
+ category : CommandCategories . FUN ,
23
+ usage : '' ,
24
+ } ,
25
+ } ) ;
26
+ }
27
+
28
+ async run ( context : Command . Context ) {
29
+ return editOrReply (
30
+ context ,
31
+ CDN . COMMAND_ASSETS_B1 ,
32
+ ) ;
33
+ }
34
+ }
You can’t perform that action at this time.
0 commit comments