diff --git a/source/commands/me/ask.js b/source/commands/me/ask.js index d7d9bdc1..be41813e 100644 --- a/source/commands/me/ask.js +++ b/source/commands/me/ask.js @@ -43,6 +43,8 @@ module.exports.function.command = { async execute(interaction) { const inputMessages = interaction.options.getString("messages"); + if (!interaction.client.ai) return interaction.reply(interaction.client.translate.commands.ask.has_been_disabled); + await interaction.deferReply(); try { diff --git a/source/commands/tools/generate.js b/source/commands/tools/generate.js index 8cc7e186..222ab7b5 100644 --- a/source/commands/tools/generate.js +++ b/source/commands/tools/generate.js @@ -99,6 +99,8 @@ module.exports.function.command = { const inputNumber = interaction.options.getInteger("number") ?? 1; const inputSize = interaction.options.getString("size") ?? "1024x1024"; + if (!interaction.client.ai) return interaction.reply(interaction.client.translate.commands.generate.has_been_disabled); + switch (subCommand) { case "images": { await interaction.reply(interaction.client.translate.commands.generate.generating_images);