Skip to content

Commit da7c383

Browse files
committed
Add Client v Bot FAQ
1 parent 1f795fd commit da7c383

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/getting-started/faq.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,20 @@ is more performant and easier to use. Twitch is also actively working on adding
4545
when they do, there will be a faster and easier turn-around for this data to be added into the library.
4646

4747
In the future, we are looking to devlop an ext that will run IRC, however the core lib going forward will stay with EventSub.
48+
49+
50+
What is the difference between Client and Bot?
51+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
52+
53+
:class:`twitchio.ext.commands.Bot` subclasses :class:`~twitchio.Client`, which means that everything :class:`~twitchio.Client`
54+
can do, and everything belonging to :class:`~twitchio.Client` is also possible and available on :class:`~twitchio.ext.commands.Bot`.
55+
56+
The benefit of :class:`twitchio.ext.commands.Bot` is that it is part of the `ext.commands <https://twitchio.dev/en/latest/exts/commands/index.html#commands>`_
57+
extension. This extension is a powerful and easy to use package that allows the creation of :class:`~twitchio.ext.commands.Command`'s' and
58+
:class:`twitchio.ext.commands.Component`'s which allow you to easily create chat based commands and sub-commands,
59+
with argument parsing and converters, guards for fine-grained permission control, cooldowns,
60+
the use of :class:`twitchio.ext.commands.Context` (featureful context around the invocation of commands; with many helpers)
61+
and more.
62+
63+
Used with :class:`twitchio.ext.commands.Component`'s and hot-reloading extension support you can easily manage your applications
64+
codebase with multiple modules and/or pacakges, with minimal down-time.

0 commit comments

Comments
 (0)