A portage from DiscordDB for javascript (but with more things...)
To install current latest release you can use followings commands:
npm install discord_db_js
#or
npm i discord_db_js
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
- discord.js
this code is under the GPL 3.0 License