Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

148
Views
No se puede leer la propiedad 'gremio' de undefined

Oye,

Quiero hacer un sistema de bienvenida y funciona en el index. Pero tengo una carpeta events en la que ya no funciona... Eso sí, he modificado un poco el código.

tengo este codigo:

 const Discord = require("discord.js") module.exports = async(client, message, member, interaction) => { function welcome(member) { const params = new URLSearchParams({ avatar: member.displayAvatarURL({ format: 'png' }), memcount: member.guild.memberCount, discrim: member.user.discriminator, name: member.user.username, bg: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRftGIBXNXQV02kJRDFaX9hZJ_JsG9iU74WfA&usqp=CAU", header: "VÍTEJ!", membertext: "{count}tý uživatel", apikey: process.env.welcomeAPIKey }); const image = 'https://api.badboy.is-a.dev/image/welcomecard?' + params return image; } //client.on("guildMemberAdd", member => { member.guild.channels.cache.get("969631692841185410").send({ embeds: [new Discord.MessageEmbed().setImage("attachment://welcome.png")], files: [new Discord.MessageAttachment(welcome(member), "attachment://welcome.png")] }) }

Pero también este error: TypeError: Cannot read property 'guild' of undefined

¿Puede alguien por favor ayudarme?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!