Skip to content

Commit a339ac8

Browse files
committed
Fix translator decorator ref links
1 parent ed8668d commit a339ac8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

twitchio/ext/commands/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ async def send_translated(self, content: str, *, me: bool = False, langcode: str
558558
See the following documentation for more details on translators:
559559
560560
- :class:`.commands.Translator`
561-
- :class:`.commands.translator`
561+
- :func:`.commands.translator`
562562
563563
.. important::
564564

twitchio/ext/commands/translators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Translator(abc.ABC):
4141
This class allows you to implement logic to translate messages sent via the :meth:`.commands.Context.send_translated`
4242
method in commands or anywhere :class:`.commands.Context` is available.
4343
44-
You should pass your implemented class to the :meth:`.commands.translator` decorator on top of a :class:`~.commands.Command`.
44+
You should pass your implemented class to the :func:`.commands.translator` decorator on top of a :class:`~.commands.Command`.
4545
4646
.. important::
4747

0 commit comments

Comments
 (0)