Skip to content
This repository was archived by the owner on Dec 24, 2021. It is now read-only.

Hidden Commands - #206

Merged
Gawdl3y merged 5 commits into
masterfrom
hidden
Oct 3, 2018
Merged

Hidden Commands#206
Gawdl3y merged 5 commits into
masterfrom
hidden

Conversation

@xiaobotdev

Copy link
Copy Markdown
Contributor

Adds support for hidden commands.
Fixes #204

@Gawdl3y

Gawdl3y commented Oct 1, 2018

Copy link
Copy Markdown
Member

The property needs to be documented in CommandInfo as well.

@Gawdl3y

Gawdl3y commented Oct 3, 2018

Copy link
Copy Markdown
Member

Oh, and typings, too. :)

@Gawdl3y
Gawdl3y merged commit f844d02 into master Oct 3, 2018
@xiaobotdev
xiaobotdev deleted the hidden branch October 4, 2018 10:44
faizal101 added a commit to faizal101/Commando that referenced this pull request Nov 2, 2018
* Fix error not being overridden with async validators

* Add union types to feature list

* Change registerDefaultCommands to use eval instead of eval_, and improve docs

* Improve more registry docs

* Allow specifying specific types to register

* Rearrange registration logic and improve docs

* Remove useless commands parameter from CommandGroup constructor

* Add dank testing of dank argument type functionality

* Update typings

* Remove unnecessary codeblock markdown

* Specify that the guild's name is needed in help

* message#member is a getter now.

* Add BetterSQLite3 Provider

* Fix: Emit distinct event for BetterSQLiteProvider

* Resolve vague method naming

* Resolves distinct event by using @fires to reference providerReady event

* Bump development version

* Make getGuildID static in Typings

* Update Typings (discordjs#151)

Added Client as an alias of CommandoClient
Added util and version

* Remove duplicate setProvider method (Fix: Gawdl3y review)

* Rename BetterSQLite3Provider to SyncSQLiteProvider (Fix: Gawdl3y review)

* Reorganise and add ignores

* fix false error in enable command

* Added isEmpty type to ArgumentInfo

* Mark ArgumentInfo#isEmpty as optional

* Change Collection Methods

* Fix lint

* Add nsfw reason to commandBlocked event docs

* Fix formatting of CommandRegistry#registerDefaults description

* Simplify validation checks in ArgumentUnionType

* Update options in CommandoClient (Typings) (discordjs#152)

* Remove selfbot mode

* Apply fix for infinite arg with default (discordjs#161)

Previously when having both infinite and default on 1 arg they would conflict. Namely say I have 2 args, one is a boolean and the other optional infinite roles (empty default). In this situation it is expected that `command on` just sets the boolean arg and keeps roles empty. The bot properly prompts if that is correct giving the user `cancel` or `finish` as options and then the error occurs. Previously when doing `finish` the command would just get canceled due to `user`, but clearly we don't want that since the arg has a default.

* bump better-sqlite3 peer depend

Windows build issues that were present between 4.0.1 and 4.1.1 were resolved in 4.1.2 with more Linux resolved by 4.1.4 so it is safe to just target the latest version again

* Added double backticks to output where there previously were single backticks (discordjs#165)

* Added double backticks to output where there previously were single backticks

* Coding style: broke line that was too long into 2 lines

* Reverted a bunch of double backticks troughout the codebase to single backticks, only leaving ones that could potentially benefit from being double in

* Fix ESLint errors

* Replace CommandMessage with CommandoMessage, extending Message

* Fix ESLint errors

* Fix ArgumentCollector

* Fix resolveCommand for unknown command messages

* readd message extension

* Update require-all to 3.0.0

* Fix type returned by findCommands method

* Fix better-sqlite3 (discordjs#172)

Commando TypeScript will not currently compile, as there is not a `better-sqlite3` module.

* Fix discordjs#178

* Fixed eval command not splitting base message correctly, and made dispatcher await array of message promises (discordjs#181)

* Fixed eval command not splitting base message correctly, and made dispatcher await array of message promises

* Added back missing args.script

* Fix isEmpty for infinite argument (discordjs#184)

* fix typings (discordjs#186)

* fix typings

commit 5942e8becc893beb8053e6ef9579aaebf0fa3e15 in discordjs/discord.js removed selfbot from code

* changes requested by @dragonfire535

* Hidden Commands (discordjs#206)

* Hidden Commands

* Simplify conditions

* Update base.js

* Change wording

* Typings

* fix(Command): ignore args array if empty (discordjs#214)

* Fix incorrect voiceStateUpdate typings interfering with discord.js master (discordjs#216)

* Fix incorrect voiceStateUpdate typings interfering with discord.js master.

* Update index.d.ts

* Update index.d.ts
faizal101 added a commit to faizal101/Commando that referenced this pull request Nov 2, 2018
* Fix error not being overridden with async validators

* Add union types to feature list

* Change registerDefaultCommands to use eval instead of eval_, and improve docs

* Improve more registry docs

* Allow specifying specific types to register

* Rearrange registration logic and improve docs

* Remove useless commands parameter from CommandGroup constructor

* Add dank testing of dank argument type functionality

* Update typings

* Remove unnecessary codeblock markdown

* Specify that the guild's name is needed in help

* message#member is a getter now.

* Add BetterSQLite3 Provider

* Fix: Emit distinct event for BetterSQLiteProvider

* Resolve vague method naming

* Resolves distinct event by using @fires to reference providerReady event

* Bump development version

* Make getGuildID static in Typings

* Update Typings (discordjs#151)

Added Client as an alias of CommandoClient
Added util and version

* Remove duplicate setProvider method (Fix: Gawdl3y review)

* Rename BetterSQLite3Provider to SyncSQLiteProvider (Fix: Gawdl3y review)

* Reorganise and add ignores

* fix false error in enable command

* Added isEmpty type to ArgumentInfo

* Mark ArgumentInfo#isEmpty as optional

* Change Collection Methods

* Fix lint

* Add nsfw reason to commandBlocked event docs

* Fix formatting of CommandRegistry#registerDefaults description

* Simplify validation checks in ArgumentUnionType

* Update options in CommandoClient (Typings) (discordjs#152)

* Remove selfbot mode

* Apply fix for infinite arg with default (discordjs#161)

Previously when having both infinite and default on 1 arg they would conflict. Namely say I have 2 args, one is a boolean and the other optional infinite roles (empty default). In this situation it is expected that `command on` just sets the boolean arg and keeps roles empty. The bot properly prompts if that is correct giving the user `cancel` or `finish` as options and then the error occurs. Previously when doing `finish` the command would just get canceled due to `user`, but clearly we don't want that since the arg has a default.

* bump better-sqlite3 peer depend

Windows build issues that were present between 4.0.1 and 4.1.1 were resolved in 4.1.2 with more Linux resolved by 4.1.4 so it is safe to just target the latest version again

* Added double backticks to output where there previously were single backticks (discordjs#165)

* Added double backticks to output where there previously were single backticks

* Coding style: broke line that was too long into 2 lines

* Reverted a bunch of double backticks troughout the codebase to single backticks, only leaving ones that could potentially benefit from being double in

* Fix ESLint errors

* Replace CommandMessage with CommandoMessage, extending Message

* Fix ESLint errors

* Fix ArgumentCollector

* Fix resolveCommand for unknown command messages

* readd message extension

* Update require-all to 3.0.0

* Fix type returned by findCommands method

* Fix better-sqlite3 (discordjs#172)

Commando TypeScript will not currently compile, as there is not a `better-sqlite3` module.

* Fix discordjs#178

* Fixed eval command not splitting base message correctly, and made dispatcher await array of message promises (discordjs#181)

* Fixed eval command not splitting base message correctly, and made dispatcher await array of message promises

* Added back missing args.script

* Fix isEmpty for infinite argument (discordjs#184)

* fix typings (discordjs#186)

* fix typings

commit 5942e8becc893beb8053e6ef9579aaebf0fa3e15 in discordjs/discord.js removed selfbot from code

* changes requested by @dragonfire535

* Hidden Commands (discordjs#206)

* Hidden Commands

* Simplify conditions

* Update base.js

* Change wording

* Typings

* fix(Command): ignore args array if empty (discordjs#214)

* Fix incorrect voiceStateUpdate typings interfering with discord.js master (discordjs#216)

* Fix incorrect voiceStateUpdate typings interfering with discord.js master.

* Update index.d.ts

* Update index.d.ts
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants