[Core] Output of help command for cogs without commands should have a friendly message #3216
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 milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot#3216
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Command bugs
Command name
[p]helpWhat cog is this command from?
Core
What were you expecting to happen?
Some friendly message inside the embed, like "There are no commands in cog
CogWithoutCommands."What actually happened?
I got this:

How can we reproduce this issue?
[p]help CogWithoutCommandscommandPreferably, such cogs would have a class docstring explaining about the class and its features even without commands, but if there isn't a class docstring (I know I'm terrible about adding class docstrings), then a fallback message such as recommended seems useful.
What about for cogs that do have commands, but for which all the commands fail their checks in the current context (e.g. a class that only has guild-only commands in DMs)? Should that have a similar warning?
My biggest enemy 😄
As for the case when all commands fail their checks, hmm, maybe we could just use the same message for both cases - something along the lines of "This cog has no commands or you don't have access to use them."?
With use of
[p]helpset verifyexistsBoth of these cases show class docstrings without an available command.Example of behavior:

Note: any suggestion which would bypass the intent of
verifyexists(to stay quiet when there's no available match to the user) would require discussing changing how that setting functions as well.Behoben in
d0a18cf4d:[p]help <Cog>zeigt bei Cogs ohne (nutzbare) Befehle jetzt "There are no commands in this cog that you can use." statt eines leeren Embeds.Generated by Claude Code