Skip to content

Commit fa3efa1

Browse files
committed
Bump discord.py to 1.5.1, intent explicit support
1 parent 72e9522 commit fa3efa1

File tree

6 files changed

+181
-179
lines changed

6 files changed

+181
-179
lines changed

Pipfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ verify_ssl = true
77
black = "==19.10b0"
88
pylint = "*"
99
bandit = "==1.6.2"
10+
flake8 = "*"
1011

1112
[packages]
1213
colorama = ">=0.4.0"
@@ -21,12 +22,9 @@ parsedatetime = "==2.6"
2122
aiohttp = ">=3.6.0,<3.7.0"
2223
python-dotenv = ">=0.10.3"
2324
pipenv = "*"
24-
"discord.py" = "==1.3.4"
25+
"discord.py" = "==1.5.1"
2526
pynacl = "*"
2627
cffi = "*"
2728

28-
[requires]
29-
python_version = "3.7"
30-
3129
[scripts]
3230
bot = "python bot.py"

Pipfile.lock

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

bot.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "3.5.0"
1+
__version__ = "3.6.0"
22

33

44
import asyncio
@@ -53,7 +53,8 @@
5353

5454
class ModmailBot(commands.Bot):
5555
def __init__(self):
56-
super().__init__(command_prefix=None) # implemented in `get_prefix`
56+
intents = discord.Intents.all()
57+
super().__init__(command_prefix=None, intents=intents) # implemented in `get_prefix`
5758
self._session = None
5859
self._api = None
5960
self.metadata_loop = None
@@ -89,7 +90,7 @@ def uptime(self) -> str:
8990

9091
def startup(self):
9192
logger.line()
92-
if os.name != 'nt':
93+
if os.name != "nt":
9394
logger.info("┌┬┐┌─┐┌┬┐┌┬┐┌─┐┬┬")
9495
logger.info("││││ │ │││││├─┤││")
9596
logger.info("┴ ┴└─┘─┴┘┴ ┴┴ ┴┴┴─┘")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ keywords = ['discord', 'modmail']
3636

3737
[tool.poetry.dependencies]
3838
python = "^3.7"
39-
"discord.py" = "=1.3.4"
39+
"discord.py" = "=1.5.1"
4040
uvloop = {version = ">=0.12.0", sys_platform = "!= 'win32'"}
4141
python-dotenv = ">=0.10.3"
4242
parsedatetime = "^2.6"

requirements.min.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ aiohttp==3.6.2
66
async-timeout==3.0.1
77
attrs==19.3.0
88
chardet==3.0.4
9-
discord.py==1.3.4
9+
discord.py==1.5.1
1010
dnspython==1.16.0
1111
emoji==0.5.4
1212
future==0.18.2

runtime.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-3.7.9
1+
python-3.9.0

0 commit comments

Comments
 (0)