Skip to content

Commit 2215ee8

Browse files
committed
Add lead_moderator docs
1 parent 6c47e76 commit 2215ee8

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

docs/exts/commands/core.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ Guards
6868

6969
.. autofunction:: twitchio.ext.commands.is_broadcaster
7070

71+
.. autofunction:: twitchio.ext.commands.is_lead_moderator
72+
7173
.. autofunction:: twitchio.ext.commands.is_moderator
7274

7375
.. autofunction:: twitchio.ext.commands.is_vip

docs/getting-started/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Changelog
1717
- Added - :func:`~twitchio.PartialUser.fetch_hype_train_status` to :class:`~twitchio.PartialUser`.
1818
This replaces :func:`~twitchio.PartialUser.fetch_hype_train_events` which has been deprecated
1919
- Added - :attr:`~twitchio.Chatter.lead_moderator`
20+
- Added - :func:`~twitchio.ext.commands.is_lead_moderator` guard
2021

2122
- Changes
2223
- :attr:`~twitchio.Chatter.moderator` returns True for Lead Moderator role.

twitchio/ext/commands/core.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,6 +1547,8 @@ def guard(predicate: Callable[..., bool] | Callable[..., CoroC]) -> Any:
15471547
15481548
- :func:`~.commands.is_broadcaster`
15491549
1550+
- :func:`~.commands.is_lead_moderator`
1551+
15501552
- :func:`~.commands.is_moderator`
15511553
15521554
- :func:`~.commands.is_vip`

0 commit comments

Comments
 (0)