From 7d306e630db06bea036ae0e8d9c7800a6d4ccff6 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sat, 2 Sep 2023 13:20:24 +0100 Subject: Add the a user_has_access helper function to interactions module. This returns whether the given user is in the allowed_users list, or has a role from allowed_roles. --- docs/changelog.rst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs') diff --git a/docs/changelog.rst b/docs/changelog.rst index 40232572..c9b10010 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -4,6 +4,8 @@ Changelog ========= +- :feature:`194` Add the :obj:`pydis_core.utils.interactions.user_has_access` helper function, that returns whether the given user is in the allowed_users list, or has a role from allowed_roles. + - :release:`10.6.0 <30th January 2024>` - :feature:`189` Add :obj:`pydis_core.utils.pagination.LinePaginator` which allows users to paginate over content using Embeds, with emoji reactions facilitating navigation. - :feature:`189` Add :obj:`pydis_core.utils.messages.reaction_check`, a predicate that dictates whether a user has the right to add a specific set of reactions based on certain criteria. -- cgit v1.2.3