By using this snippet your bot will automatically update channel name to show member count. You need to create a text or voice channel at the top of all channels. Use id of that channel while installing.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let members = await lib.discord.guilds['@0.1.0'].retrieve({
guild_id: `${context.params.event.guild_id}`,
with_counts: true,
});
await lib.discord.channels['@0.2.0'].update({
channel_id: `${process.env.CHANNEL_id}`,
name: `Members: ${members.approximate_member_count}`
});