Skip to content

Commit

Permalink
Dump 3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Taaku18 committed Jul 9, 2020
1 parent 494abba commit 178ea9c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ This project mostly adheres to [Semantic Versioning](https://semver.org/spec/v2.
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.


# v3.5.0dev5
# v3.5.0

Fixed discord.py issue.

### Added

Expand All @@ -23,7 +25,8 @@ however, insignificant breaking changes do not guarantee a major version bump, s
- Deleting channel manually will now close the thread.
- Deleting messages will no longer cause the bot to produce warnings.
- Plugins will automatically be removed when it fails to load.
- Moved all database-related activities to clients.py under MongoDBClient, with possible future hook for additional database support.
- Moved all database-related activities to clients.py under MongoDBClient, with possible future hook for additional database support.
- `bot.db` is deprecated in favour of `bot.api.db` and will be removed in the future.
- Deprecated `bot.plugin_db.get_partition` in favour of `bot.api.get_plugin_partition` (not final).
- 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.

Expand Down
7 changes: 6 additions & 1 deletion bot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "3.5.0-dev5"
__version__ = "3.5.0"


import asyncio
Expand Down Expand Up @@ -148,6 +148,11 @@ def api(self) -> ApiClient:
raise RuntimeError
return self._api

@property
def db(self):
# deprecated
return self.api.db

async def get_prefix(self, message=None):
return [self.prefix, f"<@{self.user.id}> ", f"<@!{self.user.id}> "]

Expand Down

0 comments on commit 178ea9c

Please sign in to comment.