Skip to content

Commit f4d4dac

Browse files
committed
document the instance attributes of BotBase
1 parent 1546d7b commit f4d4dac

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

docs/changelog.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
Changelog
55
=========
66

7+
- :release:`10.8.0 <18th February 2024>`
8+
- :support:`204` Document the instance attributes of :obj:`pydis_core.BotBase`.
9+
710
- :release:`10.7.0 <30th January 2024>`
811
- :feature:`158` Add locking utilities for controlling concurrency logic
912
- :support:`202` Bump various development dependencies and CI workflow action versions

pydis_core/_bot.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,20 @@ def __init__(self, base: Exception):
3333

3434

3535
class BotBase(commands.Bot):
36-
"""A sub-class that implements many common features that Python Discord bots use."""
36+
"""
37+
A sub-class that implements many common features that Python Discord bots use.
38+
39+
Attributes:
40+
guild_id (int): ID of the guild that the bot belongs to.
41+
http_session (aiohttp.ClientSession): The http session used for sending out HTTP requests.
42+
api_client (pydis_core.site_api.APIClient): The API client used for communications with the site service.
43+
statsd_url (str): The url that statsd sends metrics to.
44+
redis_session (async_rediscache.RedisSession): The redis session used to communicate with the Redis instance.
45+
stats (pydis_core.async_stats.AsyncStatsClient): The statsd client that sends metrics.
46+
all_extensions (frozenset[str]): All extensions that were found within the ``module`` passed to
47+
``self.load_extensions``. Use ``self.extensions`` to get the loaded extensions.
48+
49+
"""
3750

3851
def __init__(
3952
self,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pydis_core"
3-
version = "10.7.0"
3+
version = "10.8.0"
44
description = "PyDis core provides core functionality and utility to the bots of the Python Discord community."
55
authors = ["Python Discord <info@pythondiscord.com>"]
66
license = "MIT"

0 commit comments

Comments
 (0)