Package Exports
- nexta.js
- nexta.js/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nexta.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
nexta.js - Discord Welcomer
By: Relmzey
Install & Usage
npm install nexta.js
const { Client, GatewayIntentBits } = require('discord.js');
const { Welcomer } = require('nexta.js');
const bot = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers]
});
const welcomer = new Welcomer(bot, {
welcomeChannel: 'YOUR_CHANNEL_ID',
roleId: 'YOUR_ROLE_ID', // Optional
dmMessage: 'Welcome to {server.name}!', // Optional
embed: {
title: "Welcome {user.username}!",
description: "Member #{server.memberCount}",
color: "#00ff00",
thumbnail: "{user.avatar}"
},
imageCard: { // Optional
background: "./bg.png",
textColor: "#ffffff",
roundedAvatar: true
}
});
bot.login('YOUR_BOT_TOKEN');
Placeholders
{user.username}
- User's name{user.tag}
- User#1234{user.avatar}
- Avatar URL{server.name}
- Server name{server.memberCount}
- Member count
License
MIT