[HelpFormatter] menus blocking settings preview #2712

Closed
opened 2019-05-20 18:22:21 +02:00 by fixator10 · 1 comment
fixator10 commented 2019-05-20 18:22:21 +02:00 (Migrated from github.com)

Other bugs

What were you trying to do?

View current [p]set settings

What were you expecting to happen?

[p]set shows help for [p]set and current bot's settings

What actually happened?

[p]set shows only help for ~15 seconds or until helpmenu is closed manually, then shows current settings

How can we reproduce this issue?

  1. Enable [p]helpset usemenus
  2. Use [p]set cmd or [p]modset

gif

# Other bugs #### What were you trying to do? View current `[p]set` settings #### What were you expecting to happen? `[p]set` shows help for `[p]set` and current bot's settings #### What actually happened? `[p]set` shows only help for ~15 seconds or until helpmenu is closed manually, then shows current settings #### How can we reproduce this issue? 1. Enable `[p]helpset usemenus` 2. Use `[p]set` cmd or `[p]modset` ![gif](https://Moeka.is-a-good-waifu.com/8Uj5YPf.gif)
mikeshardmind commented 2019-05-20 18:49:06 +02:00 (Migrated from github.com)

The reason this happens is pretty obvious...

I see a few options here.

  1. Don't change the help behavior further, just send the settings first.
    • This has a downside that people need to consistently do this.
    • It's a change in output formatting from what people are used to
  2. Detatch the menu into a task in the help formatter itself.
    • We could in theory end up with different ordering each time.
      • Could probably circumvent the above by detatching and sleeping a 10th of a second, but this isn't great.
      • EDIT: a better solution (here) would be manually send the first page, then use the menu in a task.
    • This changes the API of the help formatter again, as currently it wont return until finished.
      • EDIT: I'm okay with this change, given the return type is always None, and can still be assumed to mean "help has been sent"
    • (EDIT:) This is my current preference
  3. Detatch the menu into a task in the few groups which use it this way
    • This is my personal pick (Edit: Was)
    • The "having to do it yourself" part is already implied by using autohelp=False for these.
    • Does add some extra work for 3rd party devs emulating the design.
      • This would mean we have a how to reference in core code though
  4. Stop sending the settings when used like this and add view commands for settings.
    • Clear behavior without design concerns
    • Does add another command
The reason this happens is pretty obvious... I see a few options here. 1. Don't change the help behavior further, just send the settings first. - This has a downside that people need to consistently do this. - It's a change in output formatting from what people are used to 2. Detatch the menu into a task in the help formatter itself. - We could in theory end up with different ordering each time. - Could probably circumvent the above by detatching and sleeping a 10th of a second, but this isn't great. - EDIT: a better solution (here) would be manually send the first page, then use the menu in a task. - This changes the API of the help formatter again, as currently it wont return until finished. - EDIT: I'm okay with this change, given the return type is always None, and can still be assumed to mean "help has been sent" - (EDIT:) This is my current preference 3. Detatch the menu into a task in the few groups which use it this way - This is my personal pick (Edit: Was) - The "having to do it yourself" part is already implied by using `autohelp=False` for these. - Does add some extra work for 3rd party devs emulating the design. - This would mean we have a how to reference in core code though 4. Stop sending the settings when used like this and add view commands for settings. - Clear behavior without design concerns - Does add another command
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#2712
No description provided.