Reserves command names (#2977)

* Reserves command names

  - Currently, only reserving ``cancel``
  - This should only impact matching command qualified names
  - This also checks aliases
  - This makes cc and alias use the new module constant with info about
  this
  - Module constant is available for use by 3rd party cogs which may
  dynamically create responses.

* Change misleading var name

* style

* Thanks Flame!

* Handles issues with CC
This commit is contained in:
Michael H
2019-09-28 16:58:40 -04:00
committed by GitHub
parent e38c08ab12
commit 83483abfa5
4 changed files with 22 additions and 2 deletions

View File

@@ -0,0 +1 @@
Reserves some command names for internal Red use. These are available programatically as ``redbot.core.commands.RESERVED_COMMAND_NAMES``