forked from syntaxbullet/AuroraBot-discord
refactor: rename bot client, environment variables, and project name from Kyoko to Aurora.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Events, MessageFlags } from "discord.js";
|
||||
import { KyokoClient } from "@/lib/BotClient";
|
||||
import { AuroraClient } from "@/lib/BotClient";
|
||||
import { userService } from "@/modules/user/user.service";
|
||||
import { createErrorEmbed } from "@lib/embeds";
|
||||
import type { Event } from "@lib/types";
|
||||
@@ -32,7 +32,7 @@ const event: Event<Events.InteractionCreate> = {
|
||||
}
|
||||
|
||||
if (interaction.isAutocomplete()) {
|
||||
const command = KyokoClient.commands.get(interaction.commandName);
|
||||
const command = AuroraClient.commands.get(interaction.commandName);
|
||||
if (!command || !command.autocomplete) return;
|
||||
try {
|
||||
await command.autocomplete(interaction);
|
||||
@@ -44,7 +44,7 @@ const event: Event<Events.InteractionCreate> = {
|
||||
|
||||
if (!interaction.isChatInputCommand()) return;
|
||||
|
||||
const command = KyokoClient.commands.get(interaction.commandName);
|
||||
const command = AuroraClient.commands.get(interaction.commandName);
|
||||
|
||||
if (!command) {
|
||||
console.error(`No command matching ${interaction.commandName} was found.`);
|
||||
|
||||
Reference in New Issue
Block a user