original_docstring: Unblocks a user from using modmail.
docstring: Unblocks a user from using modmail.
docstring_tokens: Unblocks a user from using modmail .
code: async def unblock(self, ctx, id=None):
          """Unblocks a user from using modmail."""
          if id is None:
              if 'User ID:' in str(ctx.channel.topic):
                  id = ctx.channel.topic.split('User ID: ')[1].strip()
              else:
                  return await ctx.send('No User ID provided.')
  
          categ = discord.utils.get(ctx.guild.categories, name='Mod Mail')
          top_chan = categ.channels[0] #bot-info
          topic = str(top_chan.topic)
          topic = topic.replace('\n'+id, '')
  
          if id in top_chan.topic:
              await top_chan.edit(topic=topic)
              await ctx.send('User successfully unblocked!')
          else:
              await ctx.send('User is not already blocked.')
code_tokens: async def unblock ( self , ctx , id = None ) : if id is None : if 'User ID:' in str ( ctx . channel . topic ) : id = ctx . channel . topic . split ( 'User ID: ' ) [ 1 ] . strip ( ) else : return await ctx . send ( 'No User ID provided.' ) categ = discord . utils . get ( ctx . guild . categories , name = 'Mod Mail' ) top_chan = categ . channels [ 0 ] topic = str ( top_chan . topic ) topic = topic . replace ( '\n' + id , '' ) if id in top_chan . topic : await top_chan . edit ( topic = topic ) await ctx . send ( 'User successfully unblocked!' ) else : await ctx . send ( 'User is not already blocked.' )
short_docstring: Unblocks a user from using modmail.
short_docstring_tokens: Unblocks a user from using modmail .
comment: """Unblocks a user from using modmail."""$SEP$#bot-info