File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import consola from 'consola'
3
3
import type { Harmonix } from './types'
4
4
import 'dotenv/config'
5
5
import { createError , ctx } from './harmonix'
6
- import { contextMenuToJSON , isHarmonixCommand , slashToJSON } from './utils'
6
+ import { contextMenuToJSON , isHarmonixCommand , commandToJSON } from './utils'
7
7
8
8
export const initCient = ( harmonixOptions : Harmonix [ 'options' ] ) => {
9
9
try {
@@ -31,7 +31,7 @@ export const refreshApplicationCommands = async (harmonix: Harmonix) => {
31
31
Routes . applicationCommands ( harmonix . options . clientId || client . user . id ) ,
32
32
{
33
33
body : commands . map ( ( cmd ) =>
34
- isHarmonixCommand ( cmd ) ? slashToJSON ( cmd ) : contextMenuToJSON ( cmd )
34
+ isHarmonixCommand ( cmd ) ? commandToJSON ( cmd ) : contextMenuToJSON ( cmd )
35
35
)
36
36
}
37
37
)
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import type {
13
13
ParsedOptionType
14
14
} from './types'
15
15
16
- export const slashToJSON = ( cmd : HarmonixCommand < OptionsDef > ) => {
16
+ export const commandToJSON = ( cmd : HarmonixCommand < OptionsDef > ) => {
17
17
const builder = new SlashCommandBuilder ( )
18
18
. setName ( cmd . config . name ! )
19
19
. setDescription ( cmd . config . description || 'No description provided' )
You can’t perform that action at this time.
0 commit comments