diff options
-rw-r--r-- | bot/exts/moderation/alts.py | 1 | ||||
-rw-r--r-- | bot/exts/moderation/infraction/management.py | 3 | ||||
-rw-r--r-- | bot/exts/recruitment/talentpool/_cog.py | 11 | ||||
-rw-r--r-- | bot/exts/utils/reminders.py | 3 | ||||
-rw-r--r-- | bot/exts/utils/utils.py | 3 |
5 files changed, 16 insertions, 5 deletions
diff --git a/bot/exts/moderation/alts.py b/bot/exts/moderation/alts.py index 51f55b807..c3fec608d 100644 --- a/bot/exts/moderation/alts.py +++ b/bot/exts/moderation/alts.py @@ -159,6 +159,7 @@ class AlternateAccounts(commands.Cog): empty=True, max_lines=3, max_size=1000, + allowed_roles=constants.MODERATION_ROLES, ) async def cog_check(self, ctx: commands.Context) -> bool: diff --git a/bot/exts/moderation/infraction/management.py b/bot/exts/moderation/infraction/management.py index 6936c978b..d2d194696 100644 --- a/bot/exts/moderation/infraction/management.py +++ b/bot/exts/moderation/infraction/management.py @@ -421,7 +421,8 @@ class ModManagement(commands.Cog): prefix=f"{prefix}\n", empty=True, max_lines=3, - max_size=1000 + max_size=1000, + allowed_roles=constants.MODERATION_ROLES, ) def infraction_to_string(self, infraction: dict[str, t.Any], ignore_fields: tuple[str, ...]) -> str: diff --git a/bot/exts/recruitment/talentpool/_cog.py b/bot/exts/recruitment/talentpool/_cog.py index 95626ffe1..6d2660175 100644 --- a/bot/exts/recruitment/talentpool/_cog.py +++ b/bot/exts/recruitment/talentpool/_cog.py @@ -330,7 +330,13 @@ class TalentPool(Cog, name="Talentpool"): title="Talent Pool active nominations", color=Color.blue() ) - await LinePaginator.paginate(lines, ctx, embed, empty=False) + await LinePaginator.paginate( + lines, + ctx, + embed, + empty=False, + allowed_roles=MODERATION_ROLES, + ) async def list_nominations( self, @@ -573,7 +579,8 @@ class TalentPool(Cog, name="Talentpool"): embed=embed, empty=True, max_lines=3, - max_size=1000 + max_size=1000, + allowed_roles=MODERATION_ROLES, ) @nomination_group.command(name="end", aliases=("unwatch", "unnominate"), root_aliases=("unnominate",)) diff --git a/bot/exts/utils/reminders.py b/bot/exts/utils/reminders.py index 4dabf31a9..934798b96 100644 --- a/bot/exts/utils/reminders.py +++ b/bot/exts/utils/reminders.py @@ -574,7 +574,8 @@ class Reminders(Cog): await LinePaginator.paginate( lines, - ctx, embed, + ctx, + embed, max_lines=3, ) diff --git a/bot/exts/utils/utils.py b/bot/exts/utils/utils.py index 68019b143..76658b3df 100644 --- a/bot/exts/utils/utils.py +++ b/bot/exts/utils/utils.py @@ -221,7 +221,8 @@ class Utils(Cog): ctx=ctx, embed=embed, max_lines=5, - max_size=1000 + max_size=1000, + allowed_roles=MODERATION_ROLES, ) @command(aliases=("poll",)) |