Future plans for discord.py #5230

Closed
opened 2021-08-28 04:12:13 +02:00 by hkennyv · 3 comments
hkennyv commented 2021-08-28 04:12:13 +02:00 (Migrated from github.com)

Hi there,

Thank you to all the maintainers for the hard work. I just wanted to bring it to attention that it looks like development on discord.py has halted (for some very good reasons outlined here). As I understand it, that is the core API library this project uses.

I didn't see a discussion on it yet, so I apologize if this issue is misplaced. As a user, I would love to know what that means for this project and how I could possibly help in any way.

<!-- Please be sure to use the correct template, if your report doesn't have the correct template please open an issue describing your issue in detail For support regarding the bot itself please visit the discord server over at https://discord.gg/red --> Hi there, Thank you to all the maintainers for the hard work. I just wanted to bring it to attention that it looks like development on [discord.py](https://github.com/Rapptz/discord.py) has halted (for some very good reasons outlined [here](https://gist.github.com/Rapptz/4a2f62751b9600a31a0d3c78100287f1)). As I understand it, that is the core API library this project uses. I didn't see a discussion on it yet, so I apologize if this issue is misplaced. As a user, I would love to know what that means for this project and how I could possibly help in any way.
Twentysix26 commented 2021-08-28 04:50:35 +02:00 (Migrated from github.com)

Hi,
it is way too early to have an official stance on the matter :)
Consider following our announcement channel in the discord server. If anything major needs to be announced it will be done there.

Hi, it is way too early to have an official stance on the matter :) Consider following our announcement channel in the [discord server](https://discord.gg/red). If anything major needs to be announced it will be done there.
Tobotimus commented 2021-08-29 01:32:18 +02:00 (Migrated from github.com)

Hi guys, it's been a while, but I thought I'd give my 2 cents here.

I'm assuming the discussion on what Red does going forward will centre around whether to fork discord.py, or whether to go with a different fork. Here's my opinion on that.

The idea of forking discord.py came up a number of times whilst I was maintaining this project, and I was always staunchly against it. I assume it also came up after I became inactive. From my recollection, the main reasons for people wanting to fork was not necessarily due to gripes with how the library was written or maintained, but just to add ways for us to hook into internal discord.py functionality. I always viewed this as a dangerously burdensome task with not a whole lot of payoff - discord.py is a large, well-written library, and it was clear that Danny had a vision on how to maintain it. It would have been a large responsibility to fork discord.py and add our own things to it, even if a lot of that work would have been the inevitable resolving of merge conflicts when trying to bring forth changes from upstream. Now imagine how much more responsibility it would be if there was no upstream, and the entire direction of the library was up to us.

I was the first to fork the discord.ext.commands package (in a way, effectively "shadowing" it as redbot.core.commands), because we needed a lot more control over command permissions for the permissions cog to work effectively. The discord.ext.commands package was the bot framework, whilst the core discord package was the wrapper for the Discord API, so as a bot framework ourselves, I think it made a lot of sense for us to have forked discord.ext.commands and take full control of it.

At this point, the consequences of forking discord.py haven't really changed - however, the consequences of not forking discord.py have changed. My advice is essentially this: before deciding to fork, give it a bit of time to see what happens. I understand that there are some deadlines from Discord on when some changes need to be made (new privileges/verification/slash commands), so you'll need to have the timeline in mind - set yourselves an approximate deadline for yourselves to decide on whether to fork discord.py, or go with someone else's fork. Who knows, perhaps someone Danny trusts will change their mind and become the new maintainer of discord.py. If I were still maintaining Red, I wouldn't want to rush into taking on discord.py as Cog-Creator's responsibility, even if we agreed to only maintain the library for Red's purposes, and not for the wider community.

Best of luck with everything guys ❤

Hi guys, it's been a while, but I thought I'd give my 2 cents here. I'm assuming the discussion on what Red does going forward will centre around whether to fork discord.py, or whether to go with a different fork. Here's my opinion on that. The idea of forking discord.py came up a number of times whilst I was maintaining this project, and I was always staunchly against it. I assume it also came up after I became inactive. From my recollection, the main reasons for people wanting to fork was not necessarily due to gripes with how the library was written or maintained, but just to add ways for us to hook into internal discord.py functionality. I always viewed this as a dangerously burdensome task with not a whole lot of payoff - discord.py is a large, well-written library, and it was clear that Danny had a vision on how to maintain it. It would have been a large responsibility to fork discord.py and add our own things to it, even if a lot of that work would have been the inevitable resolving of merge conflicts when trying to bring forth changes from upstream. Now imagine how much more responsibility it would be if there was no upstream, and the entire direction of the library was up to us. I was the first to fork the `discord.ext.commands` package (in a way, effectively "shadowing" it as `redbot.core.commands`), because we needed a lot more control over command permissions for the `permissions` cog to work effectively. The `discord.ext.commands` package was the bot framework, whilst the core `discord` package was the wrapper for the Discord API, so as a bot framework ourselves, I think it made a lot of sense for us to have forked `discord.ext.commands` and take full control of it. At this point, the consequences of forking discord.py haven't really changed - however, the consequences of *not* forking discord.py *have* changed. My advice is essentially this: before deciding to fork, give it a bit of time to see what happens. I understand that there are some deadlines from Discord on when some changes need to be made (new privileges/verification/slash commands), so you'll need to have the timeline in mind - set yourselves an approximate deadline for yourselves to decide on whether to fork discord.py, or go with someone else's fork. Who knows, perhaps someone Danny trusts will change their mind and become the new maintainer of discord.py. If I were still maintaining Red, I wouldn't want to rush into taking on discord.py as Cog-Creator's responsibility, even if we agreed to only maintain the library for Red's purposes, and not for the wider community. Best of luck with everything guys ❤
lveneris commented 2021-08-29 04:44:06 +02:00 (Migrated from github.com)

With regards to forking discord.py, I believe it could present some good opportunities. Remember that d.py was maintained by one person - we'd have good community support to make this a team effort, and many hands make light work of heavy duties.

A good approach would be to factor out a lot of Red's improvements to discord.ext.commands out as a framework, similar to the Sapphire project's relationship to discord.js. From there, whether the Red community entirely forks d.py is up to the masses, but at the very least it'd be wise to create a better official framework for wider use (and our use, dogfooding is always good) and get some higher ups in a position where input is valued in design decisions for emerging forks.

That's my two cents as someone that started with d.py and Red that moved over to discord.js to help them with Sapphire, became an external contributor, and stuck around for long enough to watch it become the official discord.js framework and many staff become collaborators of discord.js itself.

I believe if the community wanted to, it could pull it off.

With regards to forking discord.py, I believe it could present some good opportunities. Remember that d.py was maintained by one person - we'd have good community support to make this a team effort, and many hands make light work of heavy duties. A good approach would be to factor out a lot of Red's improvements to `discord.ext.commands` out as a framework, similar to [the Sapphire project](https://github.com/sapphiredev/framework)'s relationship to `discord.js`. From there, whether the Red community entirely forks d.py is up to the masses, but at the very least it'd be wise to create a better official framework for wider use (and our use, dogfooding is always good) and get some higher ups in a position where input is valued in design decisions for emerging forks. That's my two cents as someone that started with d.py and Red that moved over to discord.js to help them with Sapphire, became an external contributor, and stuck around for long enough to watch it become the official discord.js framework and many staff become collaborators of discord.js itself. I believe if the community wanted to, it could pull it off.
This discussion has been locked. Commenting is limited to contributors.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#5230
No description provided.