-
Notifications
You must be signed in to change notification settings - Fork 4
onJoin
JustCarry edited this page May 1, 2018
·
8 revisions
- When member join!
onJoin
-
(String) channel:
Channel ID
This channel will used for send the message below. -
(String) message:
Content
Greeting message.
-
(String) role:
Role ID
Add role to member who did join.
const Discord = require('discord.js');
const jc = require('jc-codes');
const client = new Discord.Client();
jc.setClient( client ) // Put client
jc.add('onJoin', { message: 'Welcome there, [user] have joined to our server, You\'ve invited by [inviter]', channel: 'channel-id', role: 'role-id' } )
jc.exec( ); // Exec codes
client.login('token');
Please read here before use