async def ignore_list(self, ctx):
        """Tells you what channels are currently ignored in this server."""

        ignored = self.config.get('ignored', [])
        channel_ids = set(c.id for c in ctx.message.server.channels)
        result = []
        for channel in ignored:
            if channel in channel_ids:
                result.append('<#{}>'.format(channel))

        if result:
            await self.bot.responses.basic(title="Ignored Channels:", message='\n\n{}'.format(', '.join(result)))
        else:
            await self.bot.responses.failure(message='I am not ignoring any channels here.')
async def ignore_list ( self , ctx ) : ignored = self . config . get ( 'ignored' , [ ] ) channel_ids = set ( c . id for c in ctx . message . server . channels ) result = [ ] for channel in ignored : if channel in channel_ids : result . append ( '<#{}>' . format ( channel ) ) if result : await self . bot . responses . basic ( title = "Ignored Channels:" , message = '\n\n{}' . format ( ', ' . join ( result ) ) ) else : await self . bot . responses . failure ( message = 'I am not ignoring any channels here.' )
Tells you what channels are currently ignored in this server.