0.0.4 • Published 4 years ago

discord.xr v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

discord.xr

About

discord.xr is a powerful Node.js Discord API wrapper.

Installation

Node.js 12.0.0 or newer is required.
PC or VDS: npm install discord.xr Glitch: pnpm install discord.xr

Danger!

SuperEmbed working node version 12.x pls change your package.json node version

Example usage

const Discord = require('discord.xr');
const client = new Discord('TOKEN');

client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}`)
});

client.on('messageCreate', function(message) {
    if (message.content === 'ping'){
        message.channel.send('Pong!');
    }
});
client.connect();

Database!

Database Made using Level and powerfull and fast database!

Example using for database.

const Discord = require('discord.xr');
const client = new Discord('TOKEN');
const db = new Discord.Database('datas') //you changeable this *datas*

client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}`)
});

client.on('messageCreate', function(message) {
    if (message.content === 'data'){
        db.set(`a.b.c`, 'variable')
        message.channel.send('Data `a.b.c` saved! ' + db.fetch(`a.b.c`))
    }
});
client.connect();

Links

Help

If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our official Discord.XR Support Server!

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago