discord_db_js
v1.1.1
Published
DiscordDB_JS (python package) version for discord.js
Readme
DiscordDB_JS
A portage from DiscordDB for javascript (but with more things...)
Installation
To install current latest release you can use followings commands:
npm install discord_db_js
#or
npm i discord_db_jsBasic Documentation
new Discord_DB(channel /*channel object or channel Id*/, client /*Discord.js client*/)
new Discord_DB_fromMessage(message/*message object or message Id*/,channel /*channel object or channel Id*/, client /*Discord.js client*/)
DB.getContent().then(content).catch(err)
DB.setContent(newContent/*JSON or Object*/).then().catch(err)###Breaking changes you now have to use
const {Discord_DB, Discord_DB_fromMessage} = require('discord_db_js')instead of
const Discord_DB = require('discord_db_js')and now Discord_DB constructor no longer take a guild argument but only a channel argument and client argument
Requirements
- discord.js
