1.1.1 • Published 4 years ago

discord_db_js v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

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_js

Basic 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
1.1.1

4 years ago

1.1.0

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago