diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e2a977..4dde909 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Changed +- Bumped discord.py to 1.5.0 ## [2.4.0] - 2020-09-27 diff --git a/dev-requirements.txt b/dev-requirements.txt index c3de709..1d8c067 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,3 +1,3 @@ -r requirements.txt flake8 -discord.py-stubs +discord.py-stubs==1.5.0 diff --git a/main.py b/main.py index 462a06c..6344358 100644 --- a/main.py +++ b/main.py @@ -44,9 +44,21 @@ debug_mode = opt.debug # Separate assignement in-case we define an override (te loop = asyncio.get_event_loop() connector = loop.run_until_complete(conn.new_connector()) +# Defining the intents +intents = discord.Intents.default() +# We don't need those +intents.bans = False +intents.emojis = False +intents.integrations = False +intents.webhooks = False +intents.invites = False +intents.voice_states = False +intents.typing = False + bot = commands.Bot(command_prefix=opt.prefix, case_insensitive=True, description=info.description, help_command=commands.MinimalHelpCommand(), + intents=intents, loop=loop, connector=connector) diff --git a/requirements.txt b/requirements.txt index 6f9e380..bd73c68 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -discord.py==1.3.4 +discord.py==1.5.0 ctyparser==2.0.0.post1 beautifulsoup4==4.9.1 lxml==4.5.2