Constructor
new EzcordClient(token, prefix)
Create a bot.
Parameters:
Name | Type | Description |
---|---|---|
token |
String | Your bot's token. |
prefix |
String | Your bot's prefix. |
- Source:
Example
const bot = new EzcordClient('token', 'prefix');
bot.connect();
Extends
- EventEmitter
Members
(static) this.client :Client
The discord.js client.
Type:
- Client
- Source:
(static) this.prefix :String
The bot's prefix.
Type:
- String
- Source:
(static) this.token :String
The bot's token.
Type:
- String
- Source:
Methods
connect()
Connects to Discord with the token you set
- Source:
setStatus(status, options)
Sets the bot's status.
Parameters:
Name | Type | Description |
---|---|---|
status |
String | What you want the status to be. |
options |
StatusOptions | Options for the status. |
- Source:
Type Definitions
StatusOptions
Options for a status.
Type:
- Object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
streamingUrl |
string |
<optional> |
Url for the Streaming status |
statusType |
'WATCHING' | 'PLAYING' | 'LISTENING' | 'STREAMING' |
<optional> |
The status type |
- Source: