mirror of
https://github.com/sern-handler/handler
synced 2026-06-06 01:16:55 +00:00
first
This commit is contained in:
@@ -33,8 +33,8 @@ export function interactionHandler(deps: UnpackedDependencies, defaultPrefix?: s
|
|||||||
// handles autocomplete
|
// handles autocomplete
|
||||||
if(isAutocomplete(event)) {
|
if(isAutocomplete(event)) {
|
||||||
const lookupTable = module.locals['@sern/lookup-table'] as Map<string, SernAutocompleteData>
|
const lookupTable = module.locals['@sern/lookup-table'] as Map<string, SernAutocompleteData>
|
||||||
const subCommandGroup = event.options.getSubcommandGroup() ?? "",
|
const subCommandGroup = event.options.getSubcommandGroup(false) ?? "",
|
||||||
subCommand = event.options.getSubcommand() ?? "",
|
subCommand = event.options.getSubcommand(false) ?? "",
|
||||||
option = event.options.getFocused(true),
|
option = event.options.getFocused(true),
|
||||||
fullPath = path.posix.join("<parent>", subCommandGroup, subCommand, option.name)
|
fullPath = path.posix.join("<parent>", subCommandGroup, subCommand, option.name)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user