From a9ed9efedb9cc40fce65f43b5221c72966384744 Mon Sep 17 00:00:00 2001 From: Josh <8677174+bijij@users.noreply.github.com> Date: Sun, 2 Jul 2023 01:39:09 +1000 Subject: [PATCH] Fix PromptOption roles property --- discord/onboarding.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/onboarding.py b/discord/onboarding.py index 4a96444ec..e400cd6c6 100644 --- a/discord/onboarding.py +++ b/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)