sb-member
v1.2.0
Published
Gets a member from a string
Downloads
8
Readme
SB-Member
Member tools for discord
Usage
Install it first with npm or clone
npm i sb-member
Example
Here is a example of using SB-Member
.
const Discord = require('discord.js');
const client = new Discord.Client();
const tools = require('sb-member');
client.on('message', (message) => {
const args = message.content.split(' ');
const user = tools.memberResolvable(args[1], message);
message.channel.send(`Hello ${user.username}`);
});
client.login('token');
More documentation go to the website.