You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dictionary of localization for the ``description`` field. This enforces the same restrictions as the ``description`` field.
1122
1123
:param Optional[Union[int, Permissions]] default_member_permissions: The permissions bit value of :class:`.Permissions`. If not given, defaults to :attr:`.Permissions.USE_APPLICATION_COMMANDS`
1123
1124
:param Optional[bool] dm_permission: The application permissions if executed in a Direct Message. Defaults to ``True``.
1125
+
:param Optional[bool] nsfw:
1126
+
.. versionadded:: 4.4.0
1127
+
1128
+
Indicates whether the command is age-restricted. Defaults to ``False``
The dictionary of localization for the ``name`` field. This enforces the same restrictions as the ``name`` field.
1184
1191
:param Optional[Union[int, Permissions]] default_member_permissions: The permissions bit value of :class:`.Permissions`. If not given, defaults to :attr:`.Permissions.USE_APPLICATION_COMMANDS`
1185
1192
:param Optional[bool] dm_permission: The application permissions if executed in a Direct Message. Defaults to ``True``.
1193
+
:param Optional[bool] nsfw:
1194
+
.. versionadded:: 4.4.0
1195
+
1196
+
Indicates whether the command is age-restricted. Defaults to ``False``
@@ -386,6 +388,7 @@ class Command(DictSerializerMixin):
386
388
:ivar Optional[Union[int, Guild, List[int], List[Guild]]] scope: The scope of the command.
387
389
:ivar Optional[str] default_member_permissions: The default member permissions of the command.
388
390
:ivar Optional[bool] dm_permission: The DM permission of the command.
391
+
:ivar Optional[bool] nsfw: Indicates whether the command is age-restricted. Defaults to ``False``.
389
392
:ivar Optional[Dict[Union[str, Locale], str]] name_localizations: The dictionary of localization for the ``name`` field. This enforces the same restrictions as the ``name`` field.
390
393
:ivar Optional[Dict[Union[str, Locale], str]] description_localizations: The dictionary of localization for the ``description`` field. This enforces the same restrictions as the ``description`` field.
391
394
:ivar bool default_scope: Whether the command should use the default scope. Defaults to ``True``.
@@ -407,6 +410,7 @@ class Command(DictSerializerMixin):
0 commit comments