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

301
Views
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 answers
Answer question

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 Report
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!