Skip to content

Commit 4f44c5b

Browse files
committed
feat(docs): Fixed documentation of InteractionDataOption
1 parent dd35949 commit 4f44c5b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

discord/interactions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ def command(self) -> Optional[Union['SlashCommand', 'MessageCommand', 'UserComma
944944

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

950950
@property
@@ -1120,7 +1120,7 @@ def __new__(cls, *args, **kwargs):
11201120
class InteractionDataOption:
11211121
"""
11221122
Represents a slash-command option passed via a command.
1123-
By default, you only get in contact with this using :attr:`~discord.AutoCompleteInteraction.focused_option`.
1123+
By default, you only get in contact with this using :attr:`~discord.AutocompleteInteraction.focused_option`.
11241124
11251125
Attributes
11261126
-----------

docs/Interactions/data-models.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ AutocompleteInteraction
3737
.. autoclass:: AutocompleteInteraction()
3838
:members:
3939
:inherited-members:
40-
:exclude-members: defer, respond_with_modal, from_type
40+
:exclude-members: defer, respond, edit, respond_with_modal, from_type, get_followup, message_is_hidden
4141

4242
ModalSubmitInteraction
4343
~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)