Merge pull request #31 from ilkergzlkkr/main

DiscordPyOutdated for v2 below, not above
This commit is contained in:
Clxud 2022-09-03 20:01:14 -04:00 committed by GitHub
commit ba404e2008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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'"
)