File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 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'
33import type { Harmonix } from './types'
44import 'dotenv/config'
55import { createError , ctx } from './harmonix'
6- import { contextMenuToJSON , isHarmonixCommand , slashToJSON } from './utils'
6+ import { contextMenuToJSON , isHarmonixCommand , commandToJSON } from './utils'
77
88export const initCient = ( harmonixOptions : Harmonix [ 'options' ] ) => {
99 try {
@@ -31,7 +31,7 @@ export const refreshApplicationCommands = async (harmonix: Harmonix) => {
3131 Routes . applicationCommands ( harmonix . options . clientId || client . user . id ) ,
3232 {
3333 body : commands . map ( ( cmd ) =>
34- isHarmonixCommand ( cmd ) ? slashToJSON ( cmd ) : contextMenuToJSON ( cmd )
34+ isHarmonixCommand ( cmd ) ? commandToJSON ( cmd ) : contextMenuToJSON ( cmd )
3535 )
3636 }
3737 )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import type {
1313 ParsedOptionType
1414} from './types'
1515
16- export const slashToJSON = ( cmd : HarmonixCommand < OptionsDef > ) => {
16+ export const commandToJSON = ( cmd : HarmonixCommand < OptionsDef > ) => {
1717 const builder = new SlashCommandBuilder ( )
1818 . setName ( cmd . config . name ! )
1919 . setDescription ( cmd . config . description || 'No description provided' )
You can’t perform that action at this time.
0 commit comments