1.0.5 • Published 4 years ago

erax-autorole v1.0.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 years ago

Image Image

Image

How To Install?

npm install erax-autorole

Warning

Discord.JS Version V12 Required.

Use

const Discord = require("discord.js");
const client = new Discord.Client({
    restTimeOffset: 0,
    restWsBridgetimeout: 100,
    disableEveryone: false
});
const { AutoRole } = require("erax-autorole");
const autorole = new AutoRole(client);

autorole.setRole("ROLE ID");
autorole.setChannel("CHANNEL ID");
autorole.setAutoRoleMsg("BLA BLA BLA");

autorole.loader({
autoRoleMsg: true
}); //Loader Of Auto-Role

/*NOTE: Bot Does Not Dend Message If "autoRoleMsg" in "loader" Function Is Specified As false.*/

/*Variables For Auto-Role Message:

{userTag}       | Writes The Tag Of The Member.
{userLabel}     | Tags The Member.
{userName}      | Writes The Name Of The Member.
{roleName}      | Writes The Name Of The Role.
{roleLabel}     | Tags The Role.
{roleTag}       | Writes The Tag Of The Role.
{guildName}     | Writes The Name Of The Guild.
{guildRegion}   | Writes The Region Of The Guild.
{userCount}     | Writes The Member Count Of The Guild.

*/

client.login("YOUR ULTRA SECRET TOKEN"); //Login The Your Bot.

If You Run Up With Any Trouble Come To Discord Below.

Discord

1.0.5

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago