Browse Source

Fix PromptOption roles property

pull/9260/head
Josh 2 years ago
parent
commit
a9ed9efedb
  1. 4
      discord/onboarding.py

4
discord/onboarding.py

@ -108,8 +108,8 @@ class OnboardingPromptOption:
return utils._unique(it)
@cached_slot_property('_cs_roles')
def default_channels(self) -> List[Role]:
"""List[Union[:class:`abc.GuildChannel`, :class:`Thread`]]: The list of roles given to the user if this option is selected."""
def roles(self) -> List[Role]:
"""List[:class:`Role`]: The list of roles given to the user if this option is selected."""
it = filter(None, map(self.guild.get_role, self.role_ids))
return utils._unique(it)

Loading…
Cancel
Save