[V3 CC] CCs not pinging @here and @everyone #2518

Closed
opened 2019-03-12 20:30:06 +01:00 by Mystard · 3 comments
Mystard commented 2019-03-12 20:30:06 +01:00 (Migrated from github.com)

Command bugs / Feature requests

Not sure if this is working as intended or a bug.

What cog is this command from?

CC

What were you expecting to happen?

If I type in @everyone or @here to a CC, I expect the respective annoyances to be pinged when executing the CC.

What actually happened?

CC inputs them as plaintext.


A user was asking in #support why his CCs don't ping @here and @everyone. After some snooping around people found that Context.send escapes mass mentions by default, and is the reason for them not working on CCs.

In my humble opinion, there should at least be an option to use them in CCs and actually make them ping. I was thinking if you don't want them to be enabled by default, maybe an argument like {everyone} would be possible? I can see the need for admins to create CCs that use these mentions, however annoying people might feel them to be.

# Command bugs / Feature requests Not sure if this is working as intended or a bug. <!-- Did you find a bug with a command? Fill out the following: --> #### What cog is this command from? CC #### What were you expecting to happen? If I type in `@everyone` or `@here` to a CC, I expect the respective annoyances to be pinged when executing the CC. #### What actually happened? CC inputs them as plaintext. ------ A user was asking in #support why his CCs don't ping @here and @everyone. After some snooping around people found that `Context.send` escapes mass mentions by default, and is the reason for them not working on CCs. In my humble opinion, there should at least be an option to use them in CCs and actually make them ping. I was thinking if you don't want them to be enabled by default, maybe an argument like {everyone} would be possible? I can see the need for admins to create CCs that use these mentions, however annoying people might feel them to be.
mikeshardmind commented 2019-03-12 20:33:27 +01:00 (Migrated from github.com)

The problem with this is that CCs can be used by anyone. By having a CC which can mass mention, anyone can use your bot to repeatedly mass mention,

The problem with this is that CCs can be used by anyone. By having a CC which can mass mention, anyone can use your bot to repeatedly mass mention,
Mystard commented 2019-03-12 20:45:13 +01:00 (Migrated from github.com)

What if there was a sub-command to create mod&admin / admin-only CCs?
I sort of forgot that CCs are usable by everyone, woops.
IIRC, permissions cog can't be used on CCs, right? So this indeed poses an issue.

What if there was a sub-command to create mod&admin / admin-only CCs? I sort of forgot that CCs are usable by everyone, woops. IIRC, permissions cog can't be used on CCs, right? So this indeed poses an issue.
Owner

Erledigt in 3e1cb7606. Neu: [p]customcom mentions [true|false] (Server-Admins). Damit können Custom Commands @everyone, @here und Rollen erwähnen. Es pingen nur Erwähnungen, die im Custom Command selbst stehen; von Nutzern übergebene Argumente pingen nicht, damit niemand den Bot zum Massen-Ping missbrauchen kann.


Generated by Claude Code

Erledigt in 3e1cb7606. Neu: `[p]customcom mentions [true|false]` (Server-Admins). Damit können Custom Commands `@everyone`, `@here` und Rollen erwähnen. Es pingen nur Erwähnungen, die im Custom Command selbst stehen; von Nutzern übergebene Argumente pingen nicht, damit niemand den Bot zum Massen-Ping missbrauchen kann. --- _Generated by [Claude Code](https://claude.ai/code)_
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#2518
No description provided.