@@ -316,9 +316,14 @@ class SlashCommand(ApplicationCommand):
316
316
Whether the command is enabled by default when it is added to a guild.
317
317
permissions: List[:class:`Permission`]
318
318
The permissions for this command.
319
+
320
+ .. note::
321
+
322
+ If this is not empty then default_permissions will be set to False.
323
+
319
324
cog: Optional[:class:`Cog`]
320
325
The cog that this command belongs to. ``None`` if there isn't one.
321
- checks: List[Callable[[:class:`.Context `], :class:`bool`]]
326
+ checks: List[Callable[[:class:`.ApplicationContext `], :class:`bool`]]
322
327
A list of predicates that verifies if the command could be executed
323
328
with the given :class:`.ApplicationContext` as the sole parameter. If an exception
324
329
is necessary to be thrown to signal failure, then one inherited from
@@ -356,7 +361,7 @@ def __init__(self, func: Callable, *args, **kwargs) -> None:
356
361
self .cog = None
357
362
358
363
params = self ._get_signature_parameters ()
359
- self .options = self .parse_options (params )
364
+ self .options = self ._parse_options (params )
360
365
361
366
try :
362
367
checks = func .__commands_checks__
@@ -376,7 +381,7 @@ def __init__(self, func: Callable, *args, **kwargs) -> None:
376
381
self .default_permission = False
377
382
378
383
379
- def parse_options (self , params ) -> List [Option ]:
384
+ def _parse_options (self , params ) -> List [Option ]:
380
385
final_options = []
381
386
382
387
if list (params .items ())[0 ][0 ] == "self" :
0 commit comments