From c58ce76ac86cfc14b715d9ddfd5a9b38cdddb5a8 Mon Sep 17 00:00:00 2001 From: ilkergzlkkr Date: Sun, 4 Sep 2022 02:06:11 +0300 Subject: [PATCH] DiscordPyOutdated for v2 or below, not above --- pomice/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pomice/__init__.py b/pomice/__init__.py index 92aa1d4..be90b49 100644 --- a/pomice/__init__.py +++ b/pomice/__init__.py @@ -8,12 +8,12 @@ The modern Lavalink wrapper designed for discord.py. """ import discord -if not discord.__version__.startswith("2.0"): +if not discord.version_info.major >= 2: class DiscordPyOutdated(Exception): pass raise DiscordPyOutdated( - "You must have discord.py 2.0 to use this library. " + "You must have discord.py (v2.0 or greater) to use this library. " "Uninstall your current version and install discord.py 2.0 " "using 'pip install discord.py'" )