Skip to content

Commit

Permalink
feat(docs): Fixed documentation of InteractionDataOption
Browse files Browse the repository at this point in the history
  • Loading branch information
mccoderpy committed Jul 10, 2022
1 parent dd35949 commit 4f44c5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions discord/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ def command(self) -> Optional[Union['SlashCommand', 'MessageCommand', 'UserComma

@property
def focused_option(self) -> 'InteractionDataOption':
""":class:`~discord.InteractionDataOption`: Returns the currently focused option."""
""":class:`~discord.interactions.InteractionDataOption`: Returns the currently focused option."""
return self.focused

@property
Expand Down Expand Up @@ -1120,7 +1120,7 @@ def __new__(cls, *args, **kwargs):
class InteractionDataOption:
"""
Represents a slash-command option passed via a command.
By default, you only get in contact with this using :attr:`~discord.AutoCompleteInteraction.focused_option`.
By default, you only get in contact with this using :attr:`~discord.AutocompleteInteraction.focused_option`.
Attributes
-----------
Expand Down
2 changes: 1 addition & 1 deletion docs/Interactions/data-models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ AutocompleteInteraction
.. autoclass:: AutocompleteInteraction()
:members:
:inherited-members:
:exclude-members: defer, respond_with_modal, from_type
:exclude-members: defer, respond, edit, respond_with_modal, from_type, get_followup, message_is_hidden

ModalSubmitInteraction
~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 4f44c5b

Please sign in to comment.