Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Membercount Discord.py

# To make a Membercount Command

@bot.command()
async def membercount(ctx):
    count = ctx.message.guild.member_count
    await ctx.message.reply(f"This server has {count} {'member' if count <= 1 else 'members'}")
 
PREVIOUS NEXT
Tagged: #Membercount
ADD COMMENT
Topic
Name
3+4 =