File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,11 @@ def qualified_name(self) -> str:
249
249
"""
250
250
return self .name
251
251
252
+ @property
253
+ def mention (self ) -> str :
254
+ # todo: add docs and make ID non-nullable
255
+ return f"</{ self .qualified_name } :{ self .id } >"
256
+
252
257
@property
253
258
def default_member_permissions (self ) -> Optional [Permissions ]:
254
259
"""Optional[:class:`.Permissions`]: The default required member permissions for this command.
Original file line number Diff line number Diff line change @@ -192,6 +192,12 @@ def qualified_name(self) -> str:
192
192
return self .name
193
193
return f"{ self ._parent .qualified_name } { self .name } "
194
194
195
+ @property
196
+ def mention (self ) -> str :
197
+ # todo: add docs and make ID non-nullable
198
+ return f"</{ self .qualified_name } :{ self .id } >"
199
+
200
+ # todo: refactor this class to make this not optional
195
201
@property
196
202
def parent (self ) -> Optional [InvokableSlashCommand ]:
197
203
"""Optional[:class:`InvokableSlashCommand`] The parent of this SubCommandGroup.
@@ -343,6 +349,11 @@ def qualified_name(self) -> str:
343
349
return self .name
344
350
return f"{ self ._parent .qualified_name } { self .name } "
345
351
352
+ @property
353
+ def mention (self ) -> str :
354
+ # todo: add docs and make ID non-nullable
355
+ return f"</{ self .qualified_name } :{ self .id } >"
356
+
346
357
@property
347
358
def parent (self ) -> Optional [Union [InvokableSlashCommand , SubCommandGroup ]]:
348
359
"""Optional[Union[:class:`InvokableSlashCommand`, :class:`SubCommandGroup`]]: The parent of this subcommand.
You can’t perform that action at this time.
0 commit comments