Archived
framework
This commit is contained in:
1 parent
7868cccea7
commit
e9cba0513d
2 files changed
+4
-4
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
# DiscordCommands
|
# DiscordCommands
|
||||||
**1.0.0**
|
**1.0.0**
|
||||||
|
|
||||||
Discord.js wrapper that helps you build your own Discord bot.
|
Discord.js framework that helps you build your own Discord bot.
|
||||||
|
|
||||||
Key features
|
Key features
|
||||||
- command system
|
- command system
|
||||||
@@ -184,7 +184,7 @@ There are 2 events defined in the *on* property
|
|||||||
> [IMPORTANT]
|
> [IMPORTANT]
|
||||||
> Do not use client.on('message') event handler! This handler is a core part of the command system.
|
> Do not use client.on('message') event handler! This handler is a core part of the command system.
|
||||||
## Customization and built-in messages
|
## Customization and built-in messages
|
||||||
All configuration parameters for messages are stored in the *messages* property (example: bot.messages)
|
All configuration parameters for messages are stored in *messages* property (example: bot.messages)
|
||||||
### Help message
|
### Help message
|
||||||
Configuration parameters are stored in *messages.help* property
|
Configuration parameters are stored in *messages.help* property
|
||||||
- **title** - *string* - title of help message
|
- **title** - *string* - title of help message
|
||||||
@@ -193,7 +193,7 @@ Configuration parameters are stored in *messages.help* property
|
|||||||
- **description** - *string* - command description (equivalent of the *description* property in *Command* object)
|
- **description** - *string* - command description (equivalent of the *description* property in *Command* object)
|
||||||
- **usage** - *string* - equivalent of the *usage* property in *Command* object (You can pass a command name, alias or keyword with the *help* command to get detailed information about the specified command)
|
- **usage** - *string* - equivalent of the *usage* property in *Command* object (You can pass a command name, alias or keyword with the *help* command to get detailed information about the specified command)
|
||||||
### System messages
|
### System messages
|
||||||
All options are stored inside *messages.system* property
|
All options are stored in *messages.system* property
|
||||||
|
|
||||||
There are 3 types of system messages
|
There are 3 types of system messages
|
||||||
- Error message (**ERROR**)
|
- Error message (**ERROR**)
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "discordcommands",
|
"name": "discordcommands",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "A wrapper that helps you create your own Discord bot easier.",
|
"description": "A framework that helps you create your own Discord bot easier.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
|||||||
Reference in new issue
Block a user