Skip to content

Discord.py should not be a hard requirement #281

Closed as not planned
Closed as not planned

Description

@wmcbtech30

I have a Discord bot project that is using pycord framework but since my project depends on wavelink, it installs discord.py which would conflict from one another since both are using discord module name.

discord.py>=2.0.1

Wavelink works fine with pycord without discord.py being installed. Would it be possible to not install discord.py as a dependency? Since I had to do pip3 uninstall -y py-cord discord.py && pip3 install py-cord every time. Thanks!

Activity

  1. AbstractUmbra commented on Feb 4, 2024

    @AbstractUmbra
    Contributor

    This library was created for usage with discord.py and as such we only really conform to usage within discord.py environments and not forks.
    It's good you've found a solution that works for you, but it does come with a level of YMMV.

    There have been several suggestions or PRs to remove this dependency and all have been rejected thusfar, so I will wait for @EvieePy to comment on this further.

  2. EvieePy commented on Feb 6, 2024

    @EvieePy
    Member

    Wavelink directly depends on discord.py that's why it's in the requirements. Yes we understand it is possible for wavelink to work on other forks such as pycord but we make no guarantees for those libraries.

    The reason wavelink revolves around discord.py is due to the ease of dispatching events and for the VoiceProtocol implementation. If one of these systems were to change even slightly in a fork, we would have to continually try and ensure compatibility across all libraries.

    Future major versions of wavelink E.g. 4+ will most likely not depend on any library, but this will come with major design changes, such as how events are dispatched.

  3. added
    discussionTalking about a subject, not for actioning
    on Feb 6, 2024
  4. locked and limited conversation to collaborators on Mar 7, 2024
  5. converted this issue into a discussion #292 on Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionTalking about a subject, not for actioning

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions