diff --git a/disnake/ext/commands/base_core.py b/disnake/ext/commands/base_core.py index c099bf8635..c65ee9b10b 100644 --- a/disnake/ext/commands/base_core.py +++ b/disnake/ext/commands/base_core.py @@ -249,6 +249,11 @@ def qualified_name(self) -> str: """ return self.name + @property + def mention(self) -> str: + # todo: add docs and make ID non-nullable + return f"" + @property def default_member_permissions(self) -> Optional[Permissions]: """Optional[:class:`.Permissions`]: The default required member permissions for this command. diff --git a/disnake/ext/commands/slash_core.py b/disnake/ext/commands/slash_core.py index 8840688f80..d316d7e19b 100644 --- a/disnake/ext/commands/slash_core.py +++ b/disnake/ext/commands/slash_core.py @@ -192,6 +192,12 @@ def qualified_name(self) -> str: return self.name return f"{self._parent.qualified_name} {self.name}" + @property + def mention(self) -> str: + # todo: add docs and make ID non-nullable + return f"" + + # todo: refactor this class to make this not optional @property def parent(self) -> Optional[InvokableSlashCommand]: """Optional[:class:`InvokableSlashCommand`] The parent of this SubCommandGroup. @@ -343,6 +349,11 @@ def qualified_name(self) -> str: return self.name return f"{self._parent.qualified_name} {self.name}" + @property + def mention(self) -> str: + # todo: add docs and make ID non-nullable + return f"" + @property def parent(self) -> Optional[Union[InvokableSlashCommand, SubCommandGroup]]: """Optional[Union[:class:`InvokableSlashCommand`, :class:`SubCommandGroup`]]: The parent of this subcommand.