1.4.8 • Published 3 years ago

chxnge v1.4.8

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

💡 Chxnge

A simple leightweight API, to make coding your discord.js bot easier! Great features, and constantly being updated. Works with discord.js v12.

📝Content On This Page

Installation

First, make sure you have Node.js installed.

Go to your terminal and write:

npm i chxnge

Importing

To import to package, we need to require it. Require it by doing:

const chxnge = require('chxnge');

Usages (Click on it for more info on how to use it)

Support

Join The Discord Server For Support! - https://discord.com/invite/EXsKttjHGv

Usage Explanation

Reaction Roles

Example:

// Easy reaction roles, with configurable names, emojis etc.
// Import the package
const chxnge = require('chxnge');
// Now, we have some info to fill in, either do this directly, or by making variables. In this example, we are going to be using variables.
// First make a const with the name of the role.
const roleName = 'Test Role';
// Second make a const with the emoji used to get the role.
const emoji = '😊';
// Third make a const with the ID of the role, you get when reacting.
const roleID = '832322339936665653';
// Fourth make a const with the ID of the channel it should be checking for reactions in (the channel the reactions role will be in.).
const channelID = '832305949749280799';
// Now, our variables are done, and we can now pass them in. You need to pass in message, and client in your command for it to work! When done, do this (it has to be this order!):
chxnge.reactionRoles(channelID, message, client, roleName, emoji, roleID)

Now you are done, and if done correctly, it will show up with something like this:

Reaction Roles Example

At the moment, you can have up to two roles. To add more, simply add them at the end in same order, by making more consts, and then imputting them at the back. It should look like this:

chxnge.reactionRoles(channelID, message, client, roleName, emoji, roleID, 'roleTwoname', 'roleTwoEmoji', 'roleTwoID')

If you need help adding more roles, join support

Suggestions

This suggestions command, is based on only being usable in the suggestions channel, so people would for example do: "!suggest 123", inside the suggestions channel, then the message would get deleted, and the suggetion embed would get sent.

Example:

// Easy suggestions, with atuo-correct-channel and more!
// Import the package
const chxnge = require('chxnge');
// Make a const with the ID of your suggestions channel.
const channelID = '832703650483798037'
// Now call the function, and pass in message, client, args at first, and then your channel id const. So it should look like this:
chxnge.suggestions(message, client, args, channelID)

Now you are done, and if done correctly, you should have something like this:

Suggestions Example

1.4.6

3 years ago

1.4.5

3 years ago

1.4.8

3 years ago

1.4.7

3 years ago

1.2.8

3 years ago

1.3.6

3 years ago

1.2.7

3 years ago

1.3.5

3 years ago

1.2.6

3 years ago

1.4.3

3 years ago

1.2.5

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.3.2

3 years ago

1.4.0

3 years ago

1.3.1

3 years ago

1.2.2

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago