[RFC] Enable mention prefix (mentionable flag) by default #6826

Closed
opened 2026-11-12 15:36:26 +01:00 by Jackenmen · 1 comment
Jackenmen commented 2026-11-12 15:36:26 +01:00 (Migrated from github.com)

What component of Red (cog, command, API) would you like to see improvements on?

Core

Describe the enhancement you're suggesting.

I think that we should consider enabling the mentionable flag as the new default behavior in Red 3.6. With the recent privileged intent changes, a supported user may need to request intent for their bot. Since text commands are not supported use for the message content intent, presenting examples with @mention command is the only viable other alternative when using core features as examples in the request. The user can, of course, manually enable it with the --mentionable flag but that's not ideal for something that may start to be more commonly needed.

There are downsides to this which is why I'm marking this as a request for comments (RFC) so that I can figure out whether this is something we should be pursuing.

As far as the downsides go:

  • cogs can utilize bot mention for their own purposes - some of them may conflict with a mentionable prefix
    • cogs like extendedmentionhelp and mentionprefix only match messages that contain just a mention so they don't conflict
    • cogs that implement some sort of conversation bot may potentially conflict with mentionable prefix depending on how they're implemented
      • for example, if they use on_message_without_command they won't trigger when a command that actually exists is used but may still trigger when a user spells a command wrong; this could cause a conflict when using fuzzy matching
  • anything that presents the first prefix from the list of prefixes will start presenting a bot mention

Something to note is that regardless of whether we choose to enable mention prefix by default or not, we can still make it easier to enable/disable it by making it configurable with a bot command instead of (or in addition to) the flag.

Anything else?

No response

### What component of Red (cog, command, API) would you like to see improvements on? Core ### Describe the enhancement you're suggesting. I think that we should _consider_ enabling the mentionable flag as the new default behavior in Red 3.6. With the recent privileged intent changes, a supported user may need to request intent for their bot. Since text commands are not supported use for the message content intent, presenting examples with `@mention command` is the only viable other alternative when using core features as examples in the request. The user can, of course, manually enable it with the `--mentionable` flag but that's not ideal for something that may start to be more commonly needed. There are downsides to this which is why I'm marking this as a request for comments (RFC) so that I can figure out whether this is something we should be pursuing. As far as the downsides go: - cogs can utilize bot mention for their own purposes - some of them may conflict with a mentionable prefix - cogs like `extendedmentionhelp` and `mentionprefix` only match messages that contain *just* a mention so they don't conflict - cogs that implement some sort of conversation bot may potentially conflict with mentionable prefix depending on how they're implemented - for example, if they use `on_message_without_command` they won't trigger when a command that actually exists is used but may still trigger when a user spells a command wrong; this could cause a conflict when using fuzzy matching - anything that presents the first prefix from the list of prefixes will start presenting a bot mention Something to note is that regardless of whether we choose to enable mention prefix by default or not, we can still make it easier to enable/disable it by making it configurable with a bot command instead of (or in addition to) the flag. ### Anything else? _No response_
Owner

Fixed by #6830, which has been merged into V3/develop.

Fixed by #6830, which has been merged into V3/develop.
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
2 participants
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#6826
No description provided.