Skip to content

feat: add support for mentioning onboarding #1373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions interactions/models/discord/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,21 @@ def voice_states(self) -> List["models.VoiceState"]:
# noinspection PyProtectedMember
return [v_state for v_state in self._client.cache.voice_state_cache.values() if v_state._guild_id == self.id]

@property
def mention_onboarding_customize(self) -> str:
"""Return a mention string for the customise section of Onboarding"""
return "<id:customize>"

@property
def mention_onboarding_browse(self) -> str:
"""Return a mention string for the browse section of Onboarding"""
return "<id:browse>"

@property
def mention_onboarding_guide(self) -> str:
"""Return a mention string for the guide section of Onboarding"""
return "<id:guide>"

async def fetch_member(self, member_id: Snowflake_Type, *, force: bool = False) -> Optional["models.Member"]:
"""
Return the Member with the given discord ID, fetching from the API if necessary.
Expand Down