code: def categories(self):
          
          r = [ch for ch in self._channels.values() if isinstance(ch, CategoryChannel)]
          r.sort(key=lambda c: (c.position, c.id))
          return r
docs: List[:class:`CategoryChannel`]: A list of categories that belongs to this guild.
  
          This is sorted by the position and are in UI order from top to bottom.