[Help] Tagline formatting #4669

Closed
opened 2020-12-12 19:06:25 +01:00 by bobloy · 1 comment
bobloy commented 2020-12-12 19:06:25 +01:00 (Migrated from github.com)

Feature request

Select the type of feature you are requesting:

  • Cog
  • Command
  • API functionality

Describe your requested feature

Be able to use [p] in [p]helpset tagline to specify the context's prefix. Currently it will only use format on the default tagline.

Nice to have: also the ability to reference the current command object for command.signature or command.qualified_name

Default tagline can use the context prefix:
image

Custom tagline can't use context prefix:
image

# Feature request <!-- This template is for feature requests. Please fill out the following: --> #### Select the type of feature you are requesting: <!-- To check a box, replace the space between the [] with a x --> - [x] Cog - [ ] Command - [ ] API functionality #### Describe your requested feature Be able to use `[p]` in `[p]helpset tagline` to specify the context's prefix. Currently it will only use format on the default tagline. Nice to have: also the ability to reference the current command object for `command.signature` or `command.qualified_name` Default tagline can use the context prefix: ![image](https://user-images.githubusercontent.com/955640/101991420-8c276200-3c7a-11eb-8673-402d3a6bb89f.png) Custom tagline can't use context prefix: ![image](https://user-images.githubusercontent.com/955640/101991456-c264e180-3c7a-11eb-9828-433d9032d36e.png)
Jackenmen commented 2021-06-28 00:39:27 +02:00 (Migrated from github.com)

Nice to have: also the ability to reference the current command object for command.signature or command.qualified_name

While there is some merit to this, I think that this would probably need a whole new command so that we can set separate taglines for cases where there isn't specific command in context (e.g. [p]help, [p]help CogName) and cases where there is (e.g. [p]help commandname). Perhaps even 3 commands in total if we want the tagline for the case with cog name too. If you think this is something we should look into, you can make another issue but we'll narrow this issue to just replacement of [p] in taglines.

> Nice to have: also the ability to reference the current command object for `command.signature` or `command.qualified_name` While there is some merit to this, I think that this would probably need a whole new command so that we can set separate taglines for cases where there isn't specific command in context (e.g. `[p]help`, `[p]help CogName`) and cases where there is (e.g. `[p]help commandname`). Perhaps even 3 commands in total if we want the tagline for the case with cog name too. If you think this is something we should look into, you can make another issue but we'll narrow this issue to just replacement of `[p]` in taglines.
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#4669
No description provided.