Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

299
Vistas
Detect if the server is community in discord.js v12

I use discord.js v12 and I would like to know if the server is a community server. Is there any property on Guild I can check for this?

enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

As Jakye mentioned in their comment, you can check your guild#features. The features property returns an array of Features; if this array includes the string COMMUNITY, your guild is a community server.

Here is a helper function:

function isCommunity(guild) {
  return guild.features?.includes('COMMUNITY');
}

And you can use it like this for example:

if (isCommunity(message.guild))
  message.channel.send(`${message.guild.name} is a community server`);
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda