Make use of d.py menus across core #4062

Closed
Drapersniper wants to merge 48 commits from user-menus into V3/develop
Drapersniper commented 2020-07-09 20:55:52 +02:00 (Migrated from github.com)

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

  • redbot/cogs/customcom/customcom.py
  • redbot/cogs/general/general.py
  • redbot/cogs/modlog/modlog.py
  • redbot/cogs/warnings/warnings.py
  • redbot/core/commands/help.py
  • redbot/cogs/economy/economy.py
  • redbot/cogs/alias/alias.py
  • helper functions to emulate existing behaviour of menu() - Partially implemented dpymenu() supports same fingerprint as menu() however it does not accept custom controls.
### Type - [ ] Bugfix - [x] Enhancement - [ ] New feature ### Description of the changes - [x] redbot/cogs/customcom/customcom.py - [x] redbot/cogs/general/general.py - [x] redbot/cogs/modlog/modlog.py - [x] redbot/cogs/warnings/warnings.py - [x] redbot/core/commands/help.py - [x] redbot/cogs/economy/economy.py - [x] redbot/cogs/alias/alias.py - [x] helper functions to emulate existing behaviour of `menu()` - Partially implemented `dpymenu()` supports same fingerprint as `menu()` however it does not accept custom controls.
palmtree5 (Migrated from github.com) reviewed 2020-07-09 20:55:52 +02:00
tekulvw (Migrated from github.com) reviewed 2020-07-09 20:55:52 +02:00
Jackenmen (Migrated from github.com) reviewed 2020-07-09 20:55:52 +02:00
aikaterna (Migrated from github.com) reviewed 2020-07-09 20:55:52 +02:00
PredaaA (Migrated from github.com) reviewed 2020-07-09 20:55:52 +02:00
mikeshardmind (Migrated from github.com) requested changes 2020-07-15 19:25:57 +02:00
mikeshardmind (Migrated from github.com) left a comment

I didn't review how this would interact with any of the cogs using it in this PR, but as far as help goes, and where some of the classes are placed, this is a problem.

I didn't review how this would interact with any of the cogs using it in this PR, but as far as help goes, and where some of the classes are placed, this is a problem.
mikeshardmind (Migrated from github.com) commented 2020-07-15 19:24:02 +02:00

This significantly changes the help menu behavior. I don't think this is a good thing. The 3 minute timeout also probably necessitates a max concurrency decorator on the help command and then also ensuring that separate invocations from context are also limited, which adds a lot more to what 3rd party replacements would also have to be aware of. I'd prefer this particular menu use not be included.

This significantly changes the help menu behavior. I don't think this is a good thing. The 3 minute timeout also probably necessitates a max concurrency decorator on the help command and then also ensuring that separate invocations from context are also limited, which adds a lot more to what 3rd party replacements would also have to be aware of. I'd prefer this particular menu use not be included.
mikeshardmind (Migrated from github.com) commented 2020-07-15 19:24:52 +02:00

Placement of this class is problematic for version guarantees

Placement of this class is problematic for version guarantees
mikeshardmind (Migrated from github.com) commented 2020-07-15 19:19:14 +02:00

These subclasses can't be added here. discord.py's menus aren't stable yet, placing them in this file would add a guarantee to them.

These subclasses can't be added here. discord.py's menus aren't stable yet, placing them in this file would add a guarantee to them.
mikeshardmind (Migrated from github.com) requested changes 2020-08-06 22:31:04 +02:00
@ -16,3 +22,4 @@
async def menu(
ctx: commands.Context,
mikeshardmind (Migrated from github.com) commented 2020-08-06 22:30:58 +02:00

This breaks existing users of this menu, it would be better to leave the existing menu as-is and just tell people to wait for stable or import it from vendor with a warning that it's not stable from there.

This breaks existing users of this menu, it would be better to leave the existing menu as-is and just tell people to wait for stable or import it from vendor with a warning that it's not stable from there.

Pull request closed

Sign in to join this conversation.
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!4062
No description provided.