[CustomCom] Better display for [p]cc list #2215
No reviewers
Labels
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 project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot!2215
Loading…
Reference in a new issue
No description provided.
Delete branch "V3/bugfix/2104"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Uses a menu, optionally embedded with respect to the embed settings, for scrolling through the custom command list, each cc with a ~50 character preview. Format is purposefully similar to the help menu.
Resolves #2104.
I don't think these changes are of the quality we should push for. It may make the list cleaner, but significantly less functional. If we need an RC3 to accomplish this, so be it in my mind.
I don't like this pagification method with embed. I think this is a good case for field based pagination to allow new lines in previews. While this method is certainly cleaner looking than the previous one, It's also less functional for many purposes.
As an example, I have many CCs in a codiing discord utilizing code blocks. The only thing I get is the language specifier and escaped backticks for those.
I like it, certainly leagues better than the previous form.
Maybe the issue with the code blocks could be resolved by replacing the new lines characters in the previews with a space.
Minor nitpick and maybe up to personal preference: I think it may look better displayed on two lines for each command
After discussion in discord, I'm modifying my review to approval.
If nobody else does, I'll eventually be looking to add an additional way to browse CCs myself later with more detail, but this shouldn't block unbreaking the current behavior for.
@Twentysix26 I actually hadn't thought of replacing newlines with spaces, I will actually give that a go. For displaying the preview on the next line, I think I personally prefer the current method for similarity with the help menu, but I will do it and post some screenshots FTR.
Screenshots
Original PR style embed (click me)
With newlines replaced with spaces
With preview on following line
I prefer the 2nd one, so I'm gonna go with it 😃