@@ -13,13 +13,15 @@ import type {
13
13
CommandExecute ,
14
14
ContextMenuCallback ,
15
15
ContextMenuConfig ,
16
+ DefineButton ,
16
17
DefineContextMenu ,
17
18
DefineContextMenuWithOptions ,
18
19
DefineEvent ,
19
20
DefineEventWithOptions ,
20
21
DefineModal ,
21
22
DefinePrecondition ,
22
23
DefinePreconditionWithName ,
24
+ DefineSelectMenu ,
23
25
EmbedOptions ,
24
26
EmbedSetters ,
25
27
EventCallback ,
@@ -31,8 +33,6 @@ import type {
31
33
OptionsDef ,
32
34
PreconditionCallback
33
35
} from './types'
34
- import { DefineButton } from './types'
35
- import { DefineSelectMenu } from './types/select-menus'
36
36
37
37
export const defineHarmonixConfig = ( config : HarmonixConfig ) => {
38
38
return config
@@ -103,6 +103,18 @@ export const defineContextMenu: DefineContextMenu &
103
103
}
104
104
}
105
105
106
+ export const defineButton : DefineButton = ( config , callback ) => {
107
+ return { config, callback }
108
+ }
109
+
110
+ export const defineModal : DefineModal = ( config , callback ) => {
111
+ return { config, callback }
112
+ }
113
+
114
+ export const defineSelectMenu : DefineSelectMenu = ( config , callback ) => {
115
+ return { config, callback }
116
+ }
117
+
106
118
export const definePrecondition : DefinePrecondition &
107
119
DefinePreconditionWithName = (
108
120
...args : [ PreconditionCallback | string , PreconditionCallback ?]
@@ -161,15 +173,3 @@ export const defineEmbed = (options: EmbedOptions) => {
161
173
export const defineAttachment = ( args : BufferResolvable | Stream ) => {
162
174
return new AttachmentBuilder ( args )
163
175
}
164
-
165
- export const defineButton : DefineButton = ( config , callback ) => {
166
- return { config, callback }
167
- }
168
-
169
- export const defineModal : DefineModal = ( config , callback ) => {
170
- return { config, callback }
171
- }
172
-
173
- export const defineSelectMenu : DefineSelectMenu = ( config , callback ) => {
174
- return { config, callback }
175
- }
0 commit comments