Changelog#
+Next 10.x feature release
-
+
[Feature] #194: Add the
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.
+
10.6.0 30th January 2024
[Feature] #199: Port common discord.commands checks from other bots to
pydis_core.utils.checks
.
diff --git a/main/genindex.html b/main/genindex.html
index b8c63e89..b5269ff4 100644
--- a/main/genindex.html
+++ b/main/genindex.html
@@ -1023,6 +1023,8 @@
An async transport method for statsd communication.
- -class AsyncStatsClient(loop, host='localhost', port=8125, prefix=None)[source]# +class AsyncStatsClient(loop, host='localhost', port=8125, prefix=None)[source]#
Bases:
StatsClientBase
An async implementation of
statsd.client.base.StatsClientBase
that supports async stat communication.- -__init__(loop, host='localhost', port=8125, prefix=None)[source]# +__init__(loop, host='localhost', port=8125, prefix=None)[source]#
Create a new
AsyncStatsClient
.- Parameters: @@ -472,7 +472,7 @@
- -async create_socket()[source]# +async create_socket()[source]#
Use
asyncio.loop.create_datagram_endpoint
from the loop given on init to create a socket.- Return type: diff --git a/main/output/pydis_core.html b/main/output/pydis_core.html index 77f4abeb..8312a81d 100644 --- a/main/output/pydis_core.html +++ b/main/output/pydis_core.html @@ -450,12 +450,12 @@
- -class BotBase(*args, guild_id, allowed_roles, http_session, redis_session=None, api_client=None, statsd_url=None, **kwargs)[source]# +class BotBase(*args, guild_id, allowed_roles, http_session, redis_session=None, api_client=None, statsd_url=None, **kwargs)[source]#
Bases:
Bot
A sub-class that implements many common features that Python Discord bots use.
- -__init__(*args, guild_id, allowed_roles, http_session, redis_session=None, api_client=None, statsd_url=None, **kwargs)[source]# +__init__(*args, guild_id, allowed_roles, http_session, redis_session=None, api_client=None, statsd_url=None, **kwargs)[source]#
Initialise the base bot instance.
- Parameters: @@ -474,7 +474,7 @@ a dummy statsd client will be created.
Useful utilities and tools for Discord bot development.