Skip to content

Commit 178ea9c

Browse files
committed
Dump 3.5.0
1 parent 494abba commit 178ea9c

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

CHANGELOG.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ This project mostly adheres to [Semantic Versioning](https://semver.org/spec/v2.
77
however, insignificant breaking changes do not guarantee a major version bump, see the reasoning [here](https://github.com/kyb3r/modmail/issues/319). If you're a plugins developer, note the "BREAKING" section.
88

99

10-
# v3.5.0dev5
10+
# v3.5.0
11+
12+
Fixed discord.py issue.
1113

1214
### Added
1315

@@ -23,7 +25,8 @@ however, insignificant breaking changes do not guarantee a major version bump, s
2325
- Deleting channel manually will now close the thread.
2426
- Deleting messages will no longer cause the bot to produce warnings.
2527
- Plugins will automatically be removed when it fails to load.
26-
- Moved all database-related activities to clients.py under MongoDBClient, with possible future hook for additional database support.
28+
- Moved all database-related activities to clients.py under MongoDBClient, with possible future hook for additional database support.
29+
- `bot.db` is deprecated in favour of `bot.api.db` and will be removed in the future.
2730
- Deprecated `bot.plugin_db.get_partition` in favour of `bot.api.get_plugin_partition` (not final).
2831
- Deprecated `MONGO_URI` config var (but will keep support in the future) in favour of `CONNECTION_URI` and `DATABASE_TYPE`. Right now there is one supported database - "mongodb", which is the default.
2932

bot.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "3.5.0-dev5"
1+
__version__ = "3.5.0"
22

33

44
import asyncio
@@ -148,6 +148,11 @@ def api(self) -> ApiClient:
148148
raise RuntimeError
149149
return self._api
150150

151+
@property
152+
def db(self):
153+
# deprecated
154+
return self.api.db
155+
151156
async def get_prefix(self, message=None):
152157
return [self.prefix, f"<@{self.user.id}> ", f"<@!{self.user.id}> "]
153158

0 commit comments

Comments
 (0)