code: def roles(self):
          
          guild = self.guild
          if guild is None:
              return []
  
          return [role for role in guild.roles if self._roles.has(role.id)]
docs: List[:class:`Role`]: A :class:`list` of roles that is allowed to use this emoji.
  
          If roles is empty, the emoji is unrestricted.