Skip to content

Commit 226b3dc

Browse files
committed
Bump discord.py version to 1.2.3
1 parent db2762d commit 226b3dc

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4242
- `config.cache` is no longer accessible, use `config['key']` for getting, `config['key'] = value` for setting, `config.remove('key')` for removing.
4343
- Dynamic attribute for configs are removed, must use `config['key']` or `config.get('key')`.
4444
- Removed helper functions `info()` and `error()` for formatting logging, it's formatted automatically now.
45+
- Bumped discord.py version to 1.2.3.
4546

4647
# v3.0.3
4748

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ parsedatetime = "==2.4"
2020
aiohttp = "<3.6.0,>=3.3.0"
2121
python-dotenv = ">=0.10.3"
2222
pipenv = "==2018.11.26"
23-
"discord.py" = "==1.1.1"
23+
"discord.py" = "==1.2.3"
2424

2525
[requires]
2626
python_version = "3.7"

Pipfile.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cogs/utility.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ async def set_presence(
546546
if status_by_key:
547547
status = Status[status_identifier]
548548
else:
549-
status = Status(status_identifier)
549+
status = Status.try_value(status_identifier)
550550
except (KeyError, ValueError):
551551
if status_identifier is not None:
552552
msg = f"Invalid status type: {status_identifier}"
@@ -564,7 +564,7 @@ async def set_presence(
564564
if activity_by_key:
565565
activity_type = ActivityType[activity_identifier]
566566
else:
567-
activity_type = ActivityType(activity_identifier)
567+
activity_type = ActivityType.try_value(activity_identifier)
568568
except (KeyError, ValueError):
569569
if activity_identifier is not None:
570570
msg = f"Invalid activity type: {activity_identifier}"

0 commit comments

Comments
 (0)