Browse Source

Add note about renamed options in the Namespace

Co-authored-by: Danny <[email protected]>
pull/8444/head
Narmy 3 years ago
committed by GitHub
parent
commit
035dd812de
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      discord/app_commands/namespace.py

5
discord/app_commands/namespace.py

@ -71,6 +71,11 @@ class Namespace:
with the name of ``example`` can be accessed using ``ns.example``. If an attribute is not found, with the name of ``example`` can be accessed using ``ns.example``. If an attribute is not found,
then ``None`` is returned rather than an attribute error. then ``None`` is returned rather than an attribute error.
.. warning::
The key names come from the raw Discord data, which means that if a parameter was renamed then the
renamed key is used instead of the function parameter name.
.. versionadded:: 2.0 .. versionadded:: 2.0
.. container:: operations .. container:: operations

Loading…
Cancel
Save