Updated log function
This commit is contained in:
@@ -25,7 +25,7 @@ export default async function loadAutocompleteEvents(client: Client, ft: FileTyp
|
||||
const autocomplete = client.autocomplete.get(interaction.commandName)
|
||||
|
||||
if (!autocomplete) {
|
||||
log(`No autocomplete matching ${interaction.commandName} was found.`, "error")
|
||||
log.error(`No autocomplete matching ${interaction.commandName} was found.`)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -45,6 +45,6 @@ export default async function loadAutocompleteEvents(client: Client, ft: FileTyp
|
||||
}]
|
||||
})
|
||||
}
|
||||
log(error, "error")
|
||||
log.error(error)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user