2.6.0 • Published 6 years ago

basicdiscord v2.6.0

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

Basic Discord

Basic Discord module is for converting Discord.JS (Discord Api) module a lot easier.

Basic Usage And Functions

Basic Usage

const basicdiscord = require('basicdiscord');
const tools = new basicdiscord('Bot Token');

Methods/Functions

embed() - Create Embed

const basicdiscord = require('basicdiscord');
const tools = new basicdiscord('Bot Token');

tools.embed(TextChannel or Message, 'String' /*Content*/, Color /* embed color (optional) */, Timer /* timer to delete the message. (optional) */);

createchannel() - Create Channel

const basicdiscord = require('basicdiscord');
const tools = new basicdiscord('Bot Token');

tools.createchannel(Guild, 0 /* Text: 0, DM: 1 Voice: 2, Group DM: 3, Category: 4 */, 'channel-name', 'Topic' /* optional */, false /* NSFW param is boolean (optional) */).then(channel => {
    console.log(channel);
});

deletechannel() - Delete Channel

const basicdiscord = require('basicdiscord');
const tools = new basicdiscord('Bot Token');

tools.deletechannel('Channel ID').then(channel => {
    console.log(channel);
});

attachment() - Attachment

const basicdiscord = require('basicdiscord');
const tools = new basicdiscord('Bot Token');

tools.attachment(Channel or Message, String /* URL */, Content /* Message Content (optional)*/);

kick() - Kick a Member

const basicdiscord = require('basicdiscord');
const tools = new basicdiscord('Bot Token');

tools.kick(GuildID, MemberID).then(kicked => {
    console.log(kicked);
});

ban() - Ban a Member

const basicdiscord = require('basicdiscord');
const tools = new basicdiscord('Bot Token');

tools.ban(GuildID, MemberID, Number /* Amount of days delete the user's messages */, String /* Reason for the ban */).then(banned => {
    console.log(banned);
});

unban() - Unban a Banned Member

const basicdiscord = require('basicdiscord');
const tools = new basicdiscord('Bot Token');

tools.unban(GuildID, MemberID).then(unbanned => {
    console.log(unbanned);
});

addrole() - Add a role to a Member.

const basicdiscord = require('basicdiscord');
const tools = new basicdiscord('Bot Token');

tools.addrole(GuildID, MemberID, RoleID).then(role => {
    console.log(role);
});

removerole() - Remove a role from a Member.

const basicdiscord = require('basicdiscord');
const tools = new basicdiscord('Bot Token');

tools.removerole(GuildID, MemberID, RoleID).then(role => {
    console.log(role);
});

Contributors

kakahan#7562

eg#3333

You can always contact us for help. :)

Note: Turkish and English guide and documention are coming soon!

2.6.0

6 years ago

2.5.0

6 years ago

2.4.0

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.2

6 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.2.0

6 years ago