discord-embed-generator
An error, success, information, and warning embed generator for Discord.JS.
Documentation
Installing
To install this module, type into your terminal:
npm install wolfiediscord/discord-embed-generator
Utilizing
First, you need to require the module.
const embed = ;
Then, that's it! Read the usage below to actually utilize it.
Usage
embed.error(msg)
Type: Function
Parameters:
Parameter | Type | Description |
---|---|---|
msg |
String | The embed content. |
Returns: Object
Example:
let error = embed;messagechannel;
embed.success(msg)
Type: Function
Parameters:
Parameter | Type | Description |
---|---|---|
msg |
String | The embed content. |
Returns: Object
Example:
let success = embed;messagechannel;
embed.info(msg)
Type: Function
Parameters:
Parameter | Type | Description |
---|---|---|
msg |
String | The embed content. |
Returns: Object
Example:
let info = embed;messagechannel;
embed.warn(msg)
Type: Function
Parameters:
Parameter | Type | Description |
---|---|---|
msg |
String | The embed content. |
Returns: Object
Example:
let warning = embed;messagechannel;