From 50429277ea7c865d3896c26d5711e9ad10bbc33c Mon Sep 17 00:00:00 2001 From: cloudwithax Date: Mon, 6 Dec 2021 17:58:21 -0500 Subject: [PATCH] Fix __init__ to support discord.py forks --- pomice/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pomice/__init__.py b/pomice/__init__.py index 71c2932..303c713 100644 --- a/pomice/__init__.py +++ b/pomice/__init__.py @@ -1,14 +1,14 @@ """Pomice wrapper for Lavalink, made possible by cloudwithax 2021""" import discord -if discord.__version__ != "2.0.0a": +if not discord.__version__.startswith("2.0"): class DiscordPyOutdated(Exception): pass raise DiscordPyOutdated( - "You must have discord.py 2.0 to use this library. " - "Uninstall your current version and install discord.py 2.0 " - "using 'pip install git+https://github.com/Rapptz/discord.py@master'" + "You must have discord.py 2.0 or a discord.py fork that uses the 'discord' namespace " + "(a.k.a: you import the libary using 'import discord') to use this library. " + "Uninstall your current version and install discord.py 2.0 or a compatible fork." ) __version__ = "1.1.6"