Skip to content

Commit edab1b4

Browse files
authored
feat: add support for mentioning onboarding (#1373)
1 parent 7c00cff commit edab1b4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

interactions/models/discord/guild.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,21 @@ def voice_states(self) -> List["models.VoiceState"]:
439439
# noinspection PyProtectedMember
440440
return [v_state for v_state in self._client.cache.voice_state_cache.values() if v_state._guild_id == self.id]
441441

442+
@property
443+
def mention_onboarding_customize(self) -> str:
444+
"""Return a mention string for the customise section of Onboarding"""
445+
return "<id:customize>"
446+
447+
@property
448+
def mention_onboarding_browse(self) -> str:
449+
"""Return a mention string for the browse section of Onboarding"""
450+
return "<id:browse>"
451+
452+
@property
453+
def mention_onboarding_guide(self) -> str:
454+
"""Return a mention string for the guide section of Onboarding"""
455+
return "<id:guide>"
456+
442457
async def fetch_member(self, member_id: Snowflake_Type, *, force: bool = False) -> Optional["models.Member"]:
443458
"""
444459
Return the Member with the given discord ID, fetching from the API if necessary.

0 commit comments

Comments
 (0)