[V3 Warnings] AllowCustomReasons -> This is not a registered reason #2014

Closed
opened 2018-08-13 16:26:29 +02:00 by Mystard · 5 comments
Mystard commented 2018-08-13 16:26:29 +02:00 (Migrated from github.com)

Command bugs

Command name

warn

What cog is this command from?

warnings

What were you expecting to happen?

A user to be warned with whatever reason I just specified

What actually happened?

Error message: "That is not a registered reason!"

How can we reproduce this issue?

  1. Enable custom reasons [p]warningset allowcustomreasons 1/true/yes
  2. Warn a user with a custom reason: [p]warn <user> <reason>
  3. "That is not a registered reason!"

I've asked about this on multiple beta versions and still didn't get a clear reply if this is supposed to work how I think it is. At least I can't figure out why else there would be a subcommand called "allowcustomreasons". If this is supposed to do something else, can you clarify that somehow in the command help? Because I interpret this that when allowcustomreasons is disabled, you can only use added reasons on the warn, and when it's enabled you can specify any reason.

# Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name warn #### What cog is this command from? warnings #### What were you expecting to happen? A user to be warned with whatever reason I just specified #### What actually happened? Error message: "That is not a registered reason!" #### How can we reproduce this issue? 1. Enable custom reasons `[p]warningset allowcustomreasons 1`/true/yes 2. Warn a user with a custom reason: `[p]warn <user> <reason>` 3. "That is not a registered reason!" ------ I've asked about this on multiple beta versions and still didn't get a clear reply if this is supposed to work how I think it is. At least I can't figure out why else there would be a subcommand called "allowcustomreasons". If this is supposed to do something else, can you clarify that somehow in the command help? Because I interpret this that when allowcustomreasons is disabled, you can only use added reasons on the warn, and when it's enabled you can specify any reason.
Tobotimus commented 2018-08-13 16:36:23 +02:00 (Migrated from github.com)

You have a valid point, it could be clearer how to use custom reasons.

To specify a custom reason, use [p]warn <user> custom and the bot will ask you to enter the reason, along with some other stuff I believe.

To make it more user-friendly, perhaps when custom reasons are enabled, changing the message "That is not a registered reason!" to "That is not a registered reason! To specify a custom reason, put custom for the reason."?

You have a valid point, it could be clearer how to use custom reasons. To specify a custom reason, use `[p]warn <user> custom` and the bot will ask you to enter the reason, along with some other stuff I believe. To make it more user-friendly, perhaps when custom reasons are enabled, changing the message "That is not a registered reason!" to "That is not a registered reason! To specify a custom reason, put `custom` for the reason."?
Mystard commented 2018-08-13 16:47:41 +02:00 (Migrated from github.com)

Right, apparently I have not read the output of [p]help warn with both sides of my brain active, it clearly says there about using "custom". Big oof!

However, I do like the clarification idea on the error message! Always good to have error messages spell stuff out for dumbos like me 😅

Right, apparently I have not read the output of `[p]help warn` with both sides of my brain active, it clearly says there about using "custom". Big oof! However, I do like the clarification idea on the error message! Always good to have error messages spell stuff out for dumbos like me 😅
Mystard commented 2018-08-13 18:35:11 +02:00 (Migrated from github.com)

Now that I know how it works, I tested it and the DM was sent fine, however no modlog event was created.

Is this caused by the rework #1867?
I have the warning case enabled on modlog, and since the case is still there it's still supposed to add a modlog event on warn, yes?

So either something is wrong with the case creation or then the case for warnings is not supposed to be there. Didn't want to create a separate issue for this, not sure if I should?

(B19 btw)

Now that I know how it works, I tested it and the DM was sent fine, however no modlog event was created. Is this caused by the rework #1867? I have the warning case enabled on modlog, and since the case is still there it's still supposed to add a modlog event on warn, yes? So either something is wrong with the case creation or then the case for warnings is not supposed to be there. Didn't want to create a separate issue for this, not sure if I should? (B19 btw)
Tobotimus commented 2018-08-14 06:46:14 +02:00 (Migrated from github.com)

@Mystard I'd appreciate it if you opened a new issue for that one, thanks :)

@Mystard I'd appreciate it if you opened a new issue for that one, thanks :)
Tobotimus commented 2018-09-03 06:57:42 +02:00 (Migrated from github.com)

Resolved by #2049.

Resolved by #2049.
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#2014
No description provided.