i dont know why the functions aren´t using my variable

i made a variable with a string inside, an then put that variable in two different functions. The problem here is that it shows me an error: "Uncaught ReferenceError: mostrarDatosTexto is not defined". I´m not sure enough why is this happening. Here´s the code: const Libro = (titulo, autor) => {return( { autor: autor, titulo:… Read More i dont know why the functions aren´t using my variable

Nuxt3 Router – $route is not defined

I’ve set up a fresh Nuxt3 project, and am having an issue when I use a NuxtLink component to navigate to a dynamic route page. <template> <div> <div v-for="project in projects.projects"> <NuxtLink :to="{ path: `/projects/${project.id}` }">{{project.text}}</NuxtLink> </div> <button @click="projects.addProject(‘Test Project’, ‘Director’)">Add Project</button> </div> </template> <script> import { useProjectsStore } from ‘@/store/projects.js’ export default { setup()… Read More Nuxt3 Router – $route is not defined

Intents keep giving me a error even though the intents code is a C&P from a working bot

I have tried this which is a copy and paste from another one of my bots const client = new Discord.Client({ intents: [ Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES, Intents.FLAGS.GUILD_MESSAGE_REACTIONS, Intents.FLAGS.GUILD_PRESENCES, ], }) Error: ReferenceError: Intents is not defined >Solution : Simply, you should define the Intents by doing this: const { Client, Intents } = require(‘discord.js’) Edit: You… Read More Intents keep giving me a error even though the intents code is a C&P from a working bot