title: How to update my member count through a specific channel name (NOT ID) python
body: <p>I have tried looping in my bot. The loop is suppose to update the member counter. I wanted double check to see if this is correct as it doesn't update the stats. The channel itself can be made trough the command its the part of updating that I am having trouble with
  any help is greatly appreciated. There is no error showing and I am really confused. Thank you in advance!</p>
  <pre><code>import nextcord
  from nextcord.ext import commands, tasks
  from nextcord.webhook import async_
  
  class stats(commands.Cog):
      def __init__(self,client):
          self.client = client
      
  
  
      @tasks.loop(minutes=1)
      async def looped_task(self,):
          text_channel_list = []
          stats = len(self.guild.members)
          channel = self.client.get_channel.startswith('Members: ')
          for guild in self.client.guilds:
              for channel in guild.text_channels:
                  text_channel_list.append(channel)
                  if channel == True:
                      await channel.edit(channel, name = f&quot;Members: {stats}&quot;)
      
      
      @commands.command()
      async def stat(self, ctx):
          channel = self.client.get_channel.startswith('Members')
          stats = len(ctx.guild.members)
          await ctx.guild.create_voice_channel(name=f&quot;Members:{stats}&quot;, category=None)
          await ctx.send(f&quot;Your Server has {stats} members&quot;)
                  
  def setup(client):
      client.add_cog(stats(client))
  </code></pre>